Hi,
These days I try to draw custom 8-bit bitmap with alpha using GUI_DrawBitmap(), but it seems NG.
The image (with alpha) is some like:
overlay_image_status_26x26.bmp
To save ROM space, i index the pixel data to 8-bit c file from the one converted by BmpCvt.exe, with the settings:
Display All
Also, I attached the file as "overlay_image_status_26x26x8.zip".
Then I draw it using the code:
The screenshot:
IMG0037X.BMP
It seems just a bit "dirty".
So, what's wrong?
Am I doing something wrong?
My emWin version is v5.48j.
Regards,
Kenmux
These days I try to draw custom 8-bit bitmap with alpha using GUI_DrawBitmap(), but it seems NG.
The image (with alpha) is some like:
overlay_image_status_26x26.bmp
To save ROM space, i index the pixel data to 8-bit c file from the one converted by BmpCvt.exe, with the settings:
C Source Code
- static GUI_CONST_STORAGE GUI_LOGPALETTE _Paloverlay_image_status_26x26x8 = {
- 232, // Number of entries
- 1, // Has transparency
- &_Colorsoverlay_image_status_26x26x8[0]
- };
- GUI_CONST_STORAGE GUI_BITMAP bmoverlay_image_status_26x26x8 = {
- 26, // xSize
- 26, // ySize
- 26, // BytesPerLine
- 8, // BitsPerPixel
- _acoverlay_image_status_26x26x8, // Pointer to picture data
- &_Paloverlay_image_status_26x26x8, // Pointer to palette
- };
Then I draw it using the code:
The screenshot:
IMG0037X.BMP
It seems just a bit "dirty".
So, what's wrong?
Am I doing something wrong?
My emWin version is v5.48j.
Regards,
Kenmux