cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to change the image color?

hamzatamer
Visitor

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

1 ACCEPTED SOLUTION

Accepted Solutions
LouisB
ST Employee

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.

Louis BOUDO
ST Software Developer | TouchGFX

View solution in original post

1 REPLY 1
LouisB
ST Employee

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.

Louis BOUDO
ST Software Developer | TouchGFX