Displaying Bitmaps with STemWIN
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-10-07 3:01 PM
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
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-11-05 12:29 AM
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.