cancel
Showing results for 
Search instead for 
Did you mean: 

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

ali_dehbidi
Senior

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.

6 REPLIES 6
Martin KJELDSEN
Chief III

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

ali_dehbidi
Senior

I have mark it to internal flash,

Martin KJELDSEN
Chief III

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

ali_dehbidi
Senior

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
Chief III

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
Senior

Hi

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

0693W000003QVo1QAG.png