AnsweredAssumed Answered

STemWin display .JPG

Question asked by Duy Tran on Jan 14, 2018
Latest reply on Jan 18, 2018 by Duy Tran

Hello,

 

I am trying to use the STemWin 5.40 in the STM32F7Cube 1.8 pack with my F746-DISCO. The basic display works fine until I tried to display an .jpg image on the LCD. The original image is: Original image

While the display on the LCD is: My display

I used the Memory device to store the code like this: 

 

/* My code begins */

GUI_MEMDEV_Handle GUImem;
BSP_SDRAM_Init(); /* Initializes the SDRAM device */
__HAL_RCC_CRC_CLK_ENABLE();
GUI_Init();
GUI_Clear();
GUI_SelectLayer(1);
GUImem = GUI_MEMDEV_Create(0, 0, 480, 272);
GUI_MEMDEV_Select(GUImem);
GUI_JPEG_Draw(_acgundam1, sizeof(_acgundam1), 0, 0);
GUI_DrawLine(0, 0, 99, 99);
GUI_MEMDEV_Select(0);
GUI_SelectLayer(0);
GUI_MEMDEV_CopyToLCD(GUImem);

/* My code ends */

Can anyone gives me a hint or a way to fix this error? Or may be some references is fine too. Thank you very much!

Duy

Outcomes