hi,
i need to draw a big picture on LCD, So first loaded picture from NAND flash to a buffer on SDRAM, then with MEMDEV Functions, Draw it on LCD,
but, when i tried to repeat those work in the Call back Function for a DialogeBox, it does'nt work Correctly. befor executed this function :"GUI_MEMDEV_CopyToLCD ( hMem0 );", picture displayed By And By.
my code is :
case WM_INIT_DIALOG:
hItem = WM_GetDialogItem ( pMsg->hWin, ID_IMAGE_0 );
GUI_MEMDEV_Select ( hItem );
GUI_JPEG_Draw ( buff , file_size , 0, 0);
?( ?( ?(
i need to draw a big picture on LCD, So first loaded picture from NAND flash to a buffer on SDRAM, then with MEMDEV Functions, Draw it on LCD,
but, when i tried to repeat those work in the Call back Function for a DialogeBox, it does'nt work Correctly. befor executed this function :"GUI_MEMDEV_CopyToLCD ( hMem0 );", picture displayed By And By.
my code is :
case WM_INIT_DIALOG:
// Initialization of 'Window'
//Load_Photo_To_Buffer ( "Test_JPEG_large.h" );
hItem = WM_GetDialogItem ( pMsg->hWin, ID_IMAGE_0 );
pData = _GetImageById_1 ( ID_IMAGE_0_IMAGE_0, &FileSize );
GUI_MEMDEV_Select ( hItem );
GUI_JPEG_Draw ( buff , file_size , 0, 0);
GUI_MEMDEV_CopyToLCD ( hItem );
The post was edited 1 time, last by mahdiafpr ().