2014-10-07 03:01 PM
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?Cheers2014-11-05 12:29 AM
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.