Matt,
I thought I had dug through the archives before I posted - but taking your
advice, I went and dug some more.
I found examples (signature, PalmPaint) where bitmaps are saved to Records -
but not as a Resource. I need to make my bitmap a resource so that I can use
it to dynamically create graphic buttons. So, I tried a few more things, but
I'm still unable to draw a bitmap from a resource db that I created. Here's
just a snip of what I'm trying now:
bmH = DmNewResource (bm_dbR, 'Tbmp', 3333, BmpSize(bmpP));
if (bmH) {
resBmpP = (BitmapPtr) MemHandleLock(bmH);
DmWrite (resBmpP, 0, BmpGetBits(bmpP), BmpSize(bmpP));
frmP = FrmGetActiveForm();
FrmNewBitmap(&frmP, 3333, 3333, 50, 100);
MemHandleUnlock(bmH);
}
If anyone has been successful in saving a bitmap to a resource database, I
would truly appreciate a code fragment.
Thank you,
Ellen
_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/