LPC1788 HOW TO USE EMWIN5.20 DRAW JPEG & PNG

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1788 HOW TO USE EMWIN5.20 DRAW JPEG & PNG

844 Views
kermitlin
Contributor I

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);
}

Labels (1)
Tags (4)
0 Kudos
1 Reply

393 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Kermit Lin,

  You said:

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 .

 I need to confirm it. Do you mean it like this:

1. show png image, fails. No bmp image show.

2. show jpg image, fails, but bmp image show.

Is that correct?  what bmp image it shows, did you call it before?

Please give me the source file which contains the jpg c code, png code, and the bmp shows code.

When I have time, I will try it on my IAR LPC1788 board.


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos