in GUI Development by
Dear all,

after a very strong effort, I was able to load a extern bitmap in my target using EwLoadExternBitmap function. I fill the XBitmap image pixel by pixel, but I get an inverted bitmap. Is there a simple way to revert the bitmap using some EW function?

Thanks in advance

Best regards


1 Answer

0 votes
Unfortunately, Windows bitmaps are stored from bottom to top...

I assume you have implemented some kind of loop where you copy line by line and pixel by pixel from the Windows bitmap into the XBitmap. Maybe the easiest way is to invert the line counter so that finally the bitmap is loaded in the expected order.

This makes it easier and faster than resorting the bitmap again.

One additional remark: Please consider, that the XBitmap is a platfrom-dependent bitmap - this means, that your image loader has to take care, that the color format of the Platform Package matches to your implementation.

Hope this helps...

Best regards,


Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint