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

Developer

Forums

Forums:

Hi,
below is the code to use the IDISPLAY_BitBlt interface..
but providing a ibitmap ptr directly is does draw the image to the screen..

{
IBitmap * pBitMap;
pBitMap = ISHELL_LoadResBitmap(pApp->a.m_pIShell,IDISPLAY_INTERFACE_RES_FILE,IDI_IMAGE1);
IDISPLAY_BitBlt (pApp->a.m_pIDisplay, 0, 0, 75, 54, pBitMap,0, 0, AEE_RO_COPY);
IDISPLAY_Update (pApp->a.m_pIDisplay);

but when i use the ibitmap interface returned by the ConvertBmp function for IDISPLAY_BitBlt , the image gets displayed on the screen.

{
AEEImageInfo imageInfo;
boolean bVal = TRUE;
pbmSource = ISHELL_LoadResData (pApp->a.m_pIShell, IDISPLAY_INTERFACE_RES_FILE,
IDI_IMAGE1, RESTYPE_IMAGE);

pDataBytes = (byte *)pbmSource + *((byte *)pbmSource);
pBmp = CONVERTBMP (pDataBytes, &imageInfo, &bVal);

IDISPLAY_BitBlt (pApp->a.m_pIDisplay, 0, 0, 65, 44, pBmp, 0, 0, AEE_RO_COPY /*AEE_RO_MASK*/);

IDISPLAY_Update (pApp->a.m_pIDisplay);

ISHELL_FreeResData (pApp->a.m_pIShell, pbmSource);
if(bVal)//free only if realloc was done
SYSFREE ( pBmp);

the above code works fine...
why do this happen... when in both the cases ibitmap interfaces are used for idisplay_bitblt

could some one pls help me find it out..

thanks
Pribhi.

May be I didn't understand the problem you are having with BitBlt, what is the issue

May be I didn't understand the problem you are having with BitBlt, what is the issue