Jump to content

BMP RLE not showing if there are more than 150 colors


Artemla

Recommended Posts

Hello. I'm trying to display BMP RLE on my screen. I made image with GIMP using color indexing (Image->Mode->Indexed...). When maximum number of colors is greater than 150 - nothing showed on screen. gdispImageDraw() gives me error GDISP_IMAGE_ERR_BADFORMAT. ugfx does not support BMP RLE images with number of colors more than 150 or I'm doing something wrong? Thanks.

Link to comment
Share on other sites

My guess is that gimp is breaking something in the image format once it reaches 150 colors.

Have a look through the header bytes of the image and compare that with the code. If you have a debugger that will make it easy to find exactly what ugfx thinks is wrong.

If you get stuck, attach the image here and when we get time we will look for you. Note that this may take a while just because of our busy schedules.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...