Greetings! I have been unable to restore my database stored image
successfully. I implemented BmpCreate, but to no avail. I then decided to use
BitmapRsrcDR1's BmpRsrcCreate(). It turns out that BmpRsrcCreate, gives me a
blank screen whenever I try to restore the image from the database. BmpCreate,
however, reproduces the image with dark lines. My program initially takes
whatever I doodle and then saves to database and exits, but upon re-entry into
the program, the bitmaped image has these black streaks or lines at the bottom.
I can see the top part
of my image but not the bottom part. I have included a portion of my code, that
is responsible for loading from the database. Any help well be greatly
appreciated.
WinPopDrawState();
WinPushDrawState();
WinSetCoordinateSystem(kCoordinatesStandard);
if(theBitmapPtr)
{
theBitmapPtr = NULL;
}
WDT = (MemPtr)MemHandleLock(RecordHandle);
theSize = (UInt32)MemPtrSize(WDT);
WinSetForeColor (gredIndexed);
theBitmapPtr = (BitmapType *)MemPtrNew(theSize);
SimpleVerify_(theBitmapPtr);
gWinTwo = WinCreateBitmapWindow(theBitmapPtr , &error);
MemHandleUnlock(RecordHandle);
RecordHandle = NULL;
WDT = NULL;
frmWinH = FrmGetWindowHandle(frmP);
WinCopyRectangle(gWinTwo, frmWinH, &offscreenCopyBounds,
pGadget>rect.topLeft.x,pGadget->rect.topLeft.y, winOverlay);
WinPopDrawState();
WinPushDrawState();
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/