cancel
Showing results for 
Search instead for 
Did you mean: 

TOUCH GFX STRECHED CIRCLES

ZExpo.1
Senior

We have a dial gauge in the center of the screen and are getting stretched-out images of the dial, What is the solution to keep it in 1:1 ratio?


MCU-STM32F750

TFT-50 PIN 800X480

BIT DEPTH-16BIT

IDE-STM32CUBEIDE

 

1 ACCEPTED SOLUTION

Accepted Solutions

I'm afraid there is no any automated system to rescale the hole content of frame and anycase it would look awful due rescale rounding, especially in text. 

Have consider to change type of display to some other that has square pixel ?

View solution in original post

3 REPLIES 3
JTP1
Lead

Hello

Maybe the pixel of your display is rectange instead of exact square and this distorts the circles ? If so, you could edit gauge background image with some image processing software so that it looks perfect circle on the display.

The other way might be to make fully transparent png image same size as current gauge background image and Then put it to background image of gauge. Then add scalable image and place the current gauge background image to it and adjust the vertical/horizontal sizes so that it looks perfect circle in your display. (place it behind the gauge)

Br JTP

Is there anything else we can do in touch gfx to produce images because we are getting elongated squares and all other graphics in stretched view?

I'm afraid there is no any automated system to rescale the hole content of frame and anycase it would look awful due rescale rounding, especially in text. 

Have consider to change type of display to some other that has square pixel ?