当前位置: 代码迷 >> Brew >> 加载的位图未展示
  详细解决方案

加载的位图未展示

热度:7655   发布时间:2013-02-26 00:00:00.0
加载的位图未显示
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);
我在这又获得了屏幕的位图啊。


AEE_RO_OR 换个参数试试 
  相关解决方案