cancel
Showing results for 
Search instead for 
Did you mean: 

problem with displaying bitmap STemWIN using IMAGE widget

Darski.Piotr
Associate II
Posted on May 12, 2016 at 12:57

Hello,

I have a problem with bitmap displaying using IMAGE_SetBMP as a widget.

I can display using GUI_BMP_Draw but I cannot as a item of parent window.

Can you help where is a problem?

regards,

Piotr

1 REPLY 1
slimen
Senior
Posted on May 13, 2016 at 18:12

Hi,

I think that there are a differences between theses functions regarding passed parameters:

- ''GUI_BMP_Draw'' Draws a BMP file which has been loaded into memory.

 Prototype: int GUI_BMP_Draw(const void * pFileData, int x0, int y0);

- ''IMAGE_SetBMP'' Sets a BMP file to be displayed

Prototype: void IMAGE_SetBitmap(IMAGE_Handle hWin, const GUI_BITMAP * pBitmap);

For more details, I suggest you to have a look to

http://www.segger.com/admin/uploads/productDocs/UM03001_emWin5.pdf

User Manual.

Regards