My app captures a signature and stores the record (with Signature) into a database.
To reduce file size, I am trying to store the signature as a 1bpp bitmap. I originally created an offscreen window which worked fine but created a bloated file size. I use WinCopyRectangle to load the signature into the offscreen window. I now create a 1bpp bitmap and then create an offscreen window using the WinCreateBitmapWindow. Here are the code changes: ****************** //gWinH = WinCreateOffscreenWindow(boundsP->extent.x, boundsP->extent.y, screenFormat, &err); bwBmpP = BmpCreate(boundsP->extent.x, boundsP->extent.y, 1, NULL, &err); gWinH = WinCreateBitmapWindow(bwBmpP, &err); ******************* The first commented line is the original offscreen window which worked just fine. The second two lines are the only changes I made to the program. The app seems to run fine under OS5.x. I'm getting two problems that are really bugging me under OS4.0. When the signature is captured and re-loaded, the graphics are extremely "boxy". Not a low-res problem. It's more like serious lego-blocks. When I exit the app, I get a memory leak error. The log states that the leak occured at the BmpCreate API. I only made two line changes. Everything else remained the same and had no memory leaks. Any ideas anyone? This is really stumping me. Eddie -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
