AnsweredAssumed Answered

LPC1788 HOW TO USE EMWIN5.20 DRAW JPEG & PNG

Question asked by kermit lin on Feb 9, 2017
Latest reply on Feb 15, 2017 by Kerry Zhou

When I use GUI_PNG_Draw() to show my png image of c code,but it's not work and stop.

When I use GUI_JPEG_Draw() to show my jpeg image of c code,but it's not show and other bmp image show .

does anyone have some sample is show image use c code of jpeg or png,I don't use sdcard.

 

my setting in the GUIConf.c is:

#define GUI_NUMBYTES (1024 * 1024) * 4
//
// Define the average block size
//
#define GUI_BLOCKSIZE 1024*64

/*********************************************************************
*
* Static data
*
**********************************************************************
*/
/* the addr by manual , be careful cal ,now space 2M byte to LCD memory*/
#define LCD_GUI_RAM_BASE (uint32_t)(LCD_VRAM_BASE_ADDR+(1024*1024*2))

/*********************************************************************
*
* Public code
*
**********************************************************************
*/
/*********************************************************************
*
* GUI_X_Config
*
* Purpose:
* Called during the initialization process in order to set up the
* available memory for the GUI.
*/
void GUI_X_Config(void) {
//
// Assign memory to emWin
//
GUI_ALLOC_AssignMemory((void *)LCD_GUI_RAM_BASE, GUI_NUMBYTES);
GUI_ALLOC_SetAvBlockSize(GUI_BLOCKSIZE);
/*GUI_ALLOC_AssignMemory((void *)LCD_GUI_RAM_BASE, GUI_NUMBYTES);
GUI_ALLOC_SetAvBlockSize(GUI_BLOCKSIZE);*/
//Number of tasks from which emWin is used at most.
//void GUITASK_SetMaxTask(int MaxTask);
}

Outcomes