I had been drawing by using the following APIs, and then drawing using the
rawBits.
WinHandle win = WinGetDrawWindow();
BitmapType *bmpP;
if (win) {
bmpP = WinGetBitmap(win);
rawBits = BmpGetBits(bmpP);
}
This obvioulsy is not the preferred way, and I modified this code to start
using an offscreen buffer.
g_bmpP = BmpCreate(160, 160, 16, NULL, &error);
rawBits = BmpGetBits(bmpP);
And, now I have tried WinDrawBitmap, and WinCopyRectangle APIs to transfer
the bits over, and they seem to work fine except the colors don't seem to
be the same. They are somewhat off -- What could be the reason?
Do I have to change the flags for the offscreen bitmap? If so, what are
the required flags?
-Troy
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/