Hi, all
I can't draw a 8-bit colored bitmap correctly with the following codes:
static void PutBitmap (Word bitmapID, Word x, Word y) { VoidHand bitmapHnd; BitmapPtr bitmapPtr; bitmapHnd = DmGetResource (bitmapRsc, bitmapID);
if (bitmapHnd) { bitmapPtr = (BitmapPtr)MemHandleLock (bitmapHnd); WinDrawBitmap (bitmapPtr, x, y); MemHandleUnlock (bitmapHnd); DmReleaseResource (bitmapHnd); } }
I v loaded an 8-bit bitmap in my resource using clipboard, and the result on the screen is a 1-bit version of it, i can just see black and write.Why this so populized functionality becomes that complex in Palm development? I just want to display a colored bitmap, why there's no functions like BitBlt? BTW, i m using Palmos4.1 and my palm did support 65536 colors.
While you loaded the 8-bit image using the clipboard, did you paste it into a 1-bit bitmap? Did you setup a bitmap family in Constructor with a 8-bit family member? Did you paste into that? If you open your .rsrc file now, is the bitmap shown as 1-bit?
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
