Skip to main content
Associate II
December 4, 2024
Solved

Is it possible to change the image color?

  • December 4, 2024
  • 1 reply
  • 553 views

Is it possible to change the color of the image or icon I created via GUI or code? The color of the .svg icons in Touchgfx's own native files can be changed via GUI, but I could not change the color of the .svg or .png images I created. There is no function called image.setcolor in the code. Is there a way to change the color of the image I created?
Thanks

Best answer by LouisB

Hello @hamzatamer ,

 

No it's not possible, svgs and images are compiled when generating the code.

You could use a dynamic bitmap  but it requires you to write your own code to perform that.

 

BR,

Louis B.

1 reply

LouisBBest answer
ST Employee
December 4, 2024

Hello @hamzatamer ,

 

No it's not possible, svgs and images are compiled when generating the code.

You could use a dynamic bitmap  but it requires you to write your own code to perform that.

 

BR,

Louis B.