cancel
Showing results for 
Search instead for 
Did you mean: 

customize the gauge widget image, not in the right pixels.

Zakba.1
Senior

I want to customize the gauge widget with my image.1- I drew an image on Coreldraw then exported PNG( image 199x198px )

2- I used it in gauge background but it was not shown in real pixels in designer( gauge_gfxdesigner image ) 3- I programmed it on my board, the image was shown in right pixels on LCD ( gauge_lcd image) while using standard gauge styles in designer there is no such a problem.

what do I do wrong? How can I convert my image to be shown in right pixels?

thank you and best regards.

0693W00000LyQSeQAN.jpg0693W00000LyQRvQAN.png0693W00000LyQRbQAN.png

4 REPLIES 4
Yoann KLEIN
ST Employee

Hello @Zakba.1​ ,

What is the size of your image ?

Because the dimensions of the default gauge background image in TouchGFXDesigner are 251px * 251px.

So, if you want your new background image to fill the widget space, it also has to be 251px width and 251px height.

Otherwise, if you wanna keep a smaller background image, you will have to change the Needle image.

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX
Zakba.1
Senior

I drew 251*251 image in CorelDRAW and exported it I had the same problem. would you plz teach me how to make an image for gauge?

the image I sent above is 199*198 px.

Siciliano345
Associate

 It seems like you're encountering an issue with image resolution when using CorelDraw for your gauge widget. To ensure your image displays correctly, try exporting it in the appropriate resolution for your widget's dimensions. You might also consider adjusting the image size or format.