cancel
Showing results for 
Search instead for 
Did you mean: 

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

 
1 ACCEPTED SOLUTION

Accepted Solutions
Alexandre RENOUX
Principal
4 REPLIES 4
Alexandre RENOUX
Principal

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

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
Principal

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

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