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.

Can anybody help me? In emergency!

Thanks in advance!



Martyn



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

Reply via email to