cancel
Showing results for 
Search instead for 
Did you mean: 

Image painters do not work when Display Orientation is Portrait and WIDTH > HEIGHT

scottSD
Lead

I asked this question in the following thread:

https://community.st.com/s/question/0D53W000003vv9GSAQ/cacheable-container-does-not-work-when-display-orientation-is-landscape-and-width-height

But received no responses, so I decided to create it's own thread and ask the question specific to image painters.

I believe there is a bug in TouchGFX. It shows up 4.15.0 and 4.16.1 (I am not sure about other versions). I will explain the process to recreate it below (then maybe I'll get some responses?).

I am having this problem on my custom board, but was able to recreate it with the STM32F769I Discovery Kit template and simulate it. It is an 800x480 display, and I have selected Portrait Display Orientation (the opposite of the native orientation of the display):

0693W000008zf2CQAQ.pngI added an image which will be painted in a circle. Here is the image's settings in the Image Format tab of the Designer:

0693W000008zf5GQAQ.pngI placed this in a circle. Here is the Designer circle's parameters:

0693W000008zggDQAQ.pngIt shows up in the Designer (above), but DOES NOT SHOW UP in the simulator:

0693W000008zf6sQAA.pngIf I change the Circle to be painted with a color fill instead of the image, it shows up on the simulator:

0693W000008zf8ZQAQ.pngThe only way that i have been able to get the image to show up on the simulator is adjusting the width of the circle in the Designer:

0693W000008zfAfQAI.pngIt then shows up on the simulator:

0693W000008zfBsQAI.pngBut notice also that the image is NOT in the correct location (slightly to the right horizontally).

Maybe I am wrong and this is not a bug, but it does not behave the same as when the Display Orientation is set to the same as the Dimensions. (And it is more than frustrating when trying to get it to work in code instead of the Designer).

Also note that I have seen this same behavior when the Display Orientation is Landscape and the WIDTH < HEIGHT.

10 REPLIES 10

Thanks I'll add it to the notes :thumbs_up: