Skip to main content
Graduate II
January 21, 2024
Solved

TOUCH GFX STRECHED CIRCLES

  • January 21, 2024
  • 1 reply
  • 1442 views

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

 

    This topic has been closed for replies.
    Best answer by JTP1

    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 ?

    1 reply

    Graduate II
    January 21, 2024

    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

    ZExpo.1Author
    Graduate II
    January 22, 2024

    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?

    JTP1Answer
    Graduate II
    January 22, 2024

    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 ?