Skip to main content
moredatalesscenter
Associate III
Solved

Is there a way to change the colors of a bitmap in the bitmap database?

..

This topic has been closed for replies.
Alexandre RENOUX
Alexandre RENOUXBest answer
Visitor II

To modify pixels at run time you need to use a dynamic bitmap : https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/dynamic-bitmaps/

/Alexandre

4 replies

Alexandre RENOUX
Visitor II

Hello,

Could you be more precise ? What are you trying to do ?

Why do you want to change the colors of a bitmap ? Is it a bitmap from a png picture that was converted during compilation ?

/Alexandre

moredatalesscenter
Associate III

Hi Alexandre, I want to invert the colors of the bitmaps compiled from png programatically. I can do this for everything else on the screen by changing Color::getColorFrom24BitRGB().

Alexandre RENOUX
Alexandre RENOUXBest answer
Visitor II

To modify pixels at run time you need to use a dynamic bitmap : https://support.touchgfx.com/docs/development/ui-development/touchgfx-engine-features/dynamic-bitmaps/

/Alexandre

moredatalesscenter
Associate III

OK thanks, I'll take a look. Is there no better way to do this generally in the framebuffer or when rendering?