Basically I have a rcp file (I am using gcc and pilrc) with the line:

BITMAPCOLOR ID BITMAP1 "Apple.ppm" TRANSPARENT 128 128 128

In my C++ code I have:
bmh=DmGetResource(bitmapRsc,BITMAP1);
bmp=(BitmapPtr) MemHandleLock(bmh]);
WinDrawBitmap(bmp,0,0);

and it doesn't work.

I also have tried:

WinSetDrawWindow(screenBuff);
WinDrawBitmap(bmp,0,0);
RctSetRectangle(&smallRect,0,0,17,17);
WinCopyRectangle(screenBuff,mainWin,&smallRect,0,0,winPaint);

but it doesn't work either.  Both time I see the bitmap, but I do not 
get the transparent part to work, it shows up as [128,128,128]/gray. 
I am running it on POSE with the "Palm OS 3/5-en-color.rom" ROM file.
 
Am I missing something.  This is the first time I am trying to use 
TRANSPARENT.

The first 8 lines of Apple.ppm are:
P3
# Created by Paint Shop Pro 6
17 17
255
128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 
128 128 128 128 128 128 128 128 128 102 255 102   0 128   0 
128 128 128 128 128 128 128 128 128   0   0   0   0   0   0






-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to