Question
STemWin display .JPG
Posted on January 14, 2018 at 05:42
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: 
While the display on the LCD is: 
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
#stm32f746-discovery #stemwin #stemwin-stm32f746discovery #stme32-cube #stm32f746-discovery