I'm trying to save a signature bitmap on palm os 5 into a resource db. BmpRsrcType * bitmapP = NULL; WinHandle theWindowHandle = NULL; MemPtr bitmapBits = NULL;
bitmapP = BmpRsrcV2Create(drawArea.extent.x, drawArea.extent.y, 1,NULL, NULL); theWindowHandle = WinCreateBitmapWindow ((BitmapPtr)bitmapP, &error); WinCopyRectangle (WinGetDrawWindow(), theWindowHandle, &drawArea, 0,0, winPaint); WinDeleteWindow(theWindowHandle,true); bitmapBits = BmpRsrcGetBits(bitmapP) ... create a resource... DmWrite(newResourceP, 0, bitmapBits, MemPtrSize(bitmapBits)) ... write resource to db... This code when I look at the bitmap is corrupted. The signature is just a set of random lines. Does anyone know what is going on? Thank you much, Chris -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
