cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying Bitmaps with STemWIN

craig23
Associate
Posted on October 08, 2014 at 00:01

Hey,

Im having a problem getting bitmaps to draw with the following functions:

IMAGE_SetBMP()

GUI_BMP_Draw()

GUI_DrawBitmap()

When drawing with any of these functions I see either the top-left most pixel or a vertical row of image pixels displayed at the image location I specify.

However I can display the bitmap fine by using either:

GUI_DrawBitmapMag()

GUI_BMP_DrawScaled()

I know I could just use the scaled versions with a scaling factor of 1. But when drawing image ''widgets'' inside a window, it seems you need to use IMAGE_SetBMP(), which is what I'm trying  to do.

Has anyone else experienced the same problem as this or can tell me what I am doing wrong?

Cheers
1 REPLY 1
Posted on November 05, 2014 at 09:29

Hi,

There are a differences between the following functions in term of passed parameters. In fact “GUI_BMP_Drawâ€�, and “GUI_BMP_DrawScaledâ€� use original bitmap file data and “GUI_DrawBitmapâ€�, “GUI_DrawBitmapMagâ€� need an image generated with STemWin tool (BmpCvt.exe). Please refer to emWin UM for more details (section 7.7)

Regards,

Heisenberg.