2024-01-21 07:03 AM
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
Solved! Go to Solution.
2024-01-21 11:25 PM
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 ?
2024-01-21 08:33 AM
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
2024-01-21 10:39 PM
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?
2024-01-21 11:25 PM
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 ?