首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Brew >

加载的位图未显示,该怎么处理

2012-02-13 
加载的位图未显示AEEBitmapInfobitmapAEEBitmapInfo*pbitmap.cx 120bitmap.cy 120bitmap.nDepth

加载的位图未显示
AEEBitmapInfo bitmap;
AEEBitmapInfo *p;
bitmap.cx= 120;
bitmap.cy = 120;
bitmap.nDepth = 24;
p = &bitmap;
  ISHELL_CreateInstance(pMe->pIShell,AEECLSID_BITMAP,(void**)&pMe->pIBitmap);

IMENUCTL_SetActive(pMe->pMenu,FALSE);
IDISPLAY_ClearScreen(pMe->pIDisplay);
  //这下面的都没错
  pMe->pIBitmap = IDISPLAY_GetDestination(pMe->pIDisplay);//屏幕显示缓冲区
pMe->pIBitmap2=ISHELL_LoadBitmap(pMe->pIShell,"p1.bmp");

IBITMAP_GetInfo(pMe->pIBitmap2,p,sizeof(AEEBitmapInfo));

IBITMAP_CreateCompatibleBitmap(pMe->pIBitmap,&pMe->pIBitmap1,120,120);
   
IBITMAP_BltIn(pMe->pIBitmap1,0,0,pMe->DeviceInfo.cxScreen,pMe->DeviceInfo.cyScreen,pMe->pIBitmap2,0,0,AEE_RO_OR);

  IDISPLAY_BitBlt(pMe->pIDisplay,0,0,pMe->DeviceInfo.cxScreen,pMe->DeviceInfo.cyScreen,pMe->pIBitmap1,0,0,AEE_RO_OR);

 
  IDISPLAY_Update(pMe->pIDisplay);
pMe->state=STATUS_BALL;



为什么我一加上IDISPLAY_ClearScreen 位图就不显示,去掉就显示

[解决办法]

探讨

模拟器上,V 3.15版的
pMe->pIBitmap = IDISPLAY_GetDestination(pMe->pIDisplay);
我在这又获得了屏幕的位图啊。

热点排行