Hello.
I'm using emWin library on ST Discovery board (STemWin) and I have problem with loading 8bpp BMP file into IMAGE widget (using IMAGE_LoadBMP function).
I'm loading whole file into RAM. Other types of bitmap (24bpp, 16bpp, 4bpp) are working fine. It looks like 8bpp palette is not loaded correctly. Anyone knows what's the problem and how to fix it? Is emWin using some predefined palette to load 8bpp bitmaps (and ignoring the palette which is in the file)?
I'm attaching screen from my LCD and 4 example bitmaps which are visible on the LCD.
4 bpp bitmap - ok
8 bpp bitmap - incorrect
16 bpp bitmap - ok
24 bpp bitmap - ok
Best regards,
Krzysztof Szewczyk
I'm using emWin library on ST Discovery board (STemWin) and I have problem with loading 8bpp BMP file into IMAGE widget (using IMAGE_LoadBMP function).
I'm loading whole file into RAM. Other types of bitmap (24bpp, 16bpp, 4bpp) are working fine. It looks like 8bpp palette is not loaded correctly. Anyone knows what's the problem and how to fix it? Is emWin using some predefined palette to load 8bpp bitmaps (and ignoring the palette which is in the file)?
I'm attaching screen from my LCD and 4 example bitmaps which are visible on the LCD.
4 bpp bitmap - ok
8 bpp bitmap - incorrect
16 bpp bitmap - ok
24 bpp bitmap - ok
Best regards,
Krzysztof Szewczyk