Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hello Friends
I am trying to get a snap shot of the screen. but i am getting garbage in pBmp member of IDIB.

Here is the code snippet
###################################################
###################################################
IDISPLAY_ClearScreen(pMe->a.m_pIDisplay);
IDISPLAY_DrawText(pMe->a.m_pIDisplay, AEE_FONT_NORMAL, L"Top10 => 1, Embedded => 2",
-1, rect.x, rect.y, 0, 0);

IDISPLAY_Update(pMe->a.m_pIDisplay);

int nRet = IDISPLAY_GetDeviceBitmap(pMe->a.m_pIDisplay, &pMe->pIBitmap);

AEEBitmapInfo info;
nRet = IBITMAP_QueryInterface(pMe->pIBitmap, AEECLSID_DIB, (void**)&pMe->piDIB);
IBITMAP_GetInfo(pMe->pIBitmap, &info, sizeof(AEEBitmapInfo));
IBITMAP_Release(pMe->pIBitmap);

IDISPLAY_Update(pMe->a.m_pIDisplay);
###################################################

Here is the content of pMe->piDIB

pPaletteMap 0x00000000 {pvt=??? }
pBmp "
pRGB 0x00000000
ncTransparent 0
cx 120
nPitch 120
cntRGB 0
nDepth 8
nColorScheme 8

I have tried with 2.0 emulator and 3.x emulator; but same garbage. I have see the ScreenCap sample given with BTILDemo2006; here is the link

http://brew.qualcomm.com/brew/en/pr...TILDemo2006.exe .

I want to capture the screen; and if a condition is met i need to redraw the screen as it was before that condition. What i am planing is; to capture the screen ; and if the condition is met redraw the screen with the screen shot bitmap pointer.

If any one of you have any idea how to fix this (garbage) issue please let me know.

Thanks
Gopal
eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%67%6f%70%61%6c%2e%76%6d%40%67%6d%61%69%6c%2e%63%6f%6d%22%20%63%6c%61%73%73%3d%22%62%62%2d%65%6d%61%69%6c%22%3e%67%6f%70%61%6c%2e%76%6d%40%67%6d%61%69%6c%2e%63%6f%6d%3c%2f%61%3e%27%29%3b'))