void Lcd_show_bmp(unsigned short int x, unsigned short int y,unsigned char *pic_name)
{
int i, j, k;
GUI_HMEM hMem;
char *_acBuffer2;
BYTE jj[3000];
unsigned int read_num;
unsigned char tmp_name[20];
sprintf((char*)tmp_name,"0:%s",pic_name);
// hMem = GUI_ALLOC_AllocZero(1024*1024);
// _acBuffer2 = GUI_ALLOC_h2p(hMem);
_acBuffer2 = (char *)(0x68000000);
f_mount(0, &bmpfs[0]);
bmpres = f_open( &bmpfsrc , (char *)tmp_name, FA_OPEN_EXISTING | FA_READ);
/*-------------------------------------------------------------------------------------------------------*/
f_read(&bmpfsrc, _acBuffer2 ,bmpfsrc.fsize,&read_num);
//for(i=0;i<100;i++)
//printf(&quot;%c&quot;,*(_acBuffer2+i));
GUI_BMP_Draw(_acBuffer2,0,0);
f_close(&bmpfsrc);
}
打印前100个字节这样子,是对的 |