Skip to main content
ali_dehbidi
Associate III
August 27, 2020
Question

Why my touchGFX project, generate wrong color formats for pictures!

  • August 27, 2020
  • 6 replies
  • 1457 views

Hi,

I have managed to finally bring my custom board up and touchGFX is now detecting my LCD and putting widgets on screen,

I’m using LTDC as LCD controller (RGB565), when I just put a progress bar with only solid colors, it shows it perfectly, But when I put the Image progress bar, it would show the wrong color conversion! What’s wrong and what can be done.

Note: in simulator, touchgfx shows everything in the right color format!

Take a look at sample picture.

This topic has been closed for replies.

6 replies

Martin KJELDSEN
Principal III
August 27, 2020

Where is the image located? external flash? Is the flash programmed with the image?

ali_dehbidi
Associate III
August 27, 2020

I have mark it to internal flash,

Martin KJELDSEN
Principal III
August 28, 2020

And is the flash programmed with the image? Otherwise touchgfx will just read whatever is out there.

ali_dehbidi
Associate III
August 28, 2020

Yes, of course the image is programmed in the flash.

Any other ideas? I think it maybe has converted the images with a wrong color format or something like that.

Martin KJELDSEN
Principal III
August 31, 2020

The LCD classes in TouchGFX prevent processing of any "wrong" image formats (e.g. using an RGB888 image with an RGB565 framebuffer) Your program wouldn't run. What does the original image look like?

ali_dehbidi
Associate III
September 2, 2020

Hi

The image is the original progress bare Image from touchGFX, It's like the attached pictures.

0693W000003QVo1QAG.png