Skip to main content
moredatalesscenter
Associate III
September 18, 2020
Solved

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

  • September 18, 2020
  • 4 replies
  • 1204 views

..

This topic has been closed for replies.
Best answer by Alexandre RENOUX

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
September 18, 2020

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
September 18, 2020

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
September 18, 2020

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
September 18, 2020

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