Hi.

I'm working in a application that captures a image and save it in a SD card.
The image is captured successfully and I can use the resulting bitmap with
WinDrawBitmap, then I save it to the card. But, when I access it (via the
image viewer of PalmOS) it appears as a corrupted image.
I've tried saving it using JpegLib, pnoJpegLib and now I'm just writing the
bitmap structure to a VFS file.

       //captureInfo.pBitmap is the pointer to the bitmap captured by the
camera
       bitmapP = captureInfo.pBitmap;
       BmpGetSizes(bitmapP, &dataSize, &structSize);
       error = VFSFileWrite(fileP, dataSize+structSize, bitmapP, NULL);

I'm using a Zire 72, with PalmOS 5.2.8, so I think the errors when saving
both jpegs and bmps must be because I'm not handling the captured bitmap
correctly. I've read some threads in this forum and articles at the
Knowledge Base but didn't find anything (or didn't understand it) that could
apply to this problem.
Someone with experience would help greatly.

Thanks for your attention,
Christiano.



-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to