685 views
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

Gianni.

1 Answer

0 votes
by
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,

Manfred.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...