Don't remember very well, but I think you have to pass the bits of the image, not the bitmap itself. However I had the same problem and I switched to Stefan Stolz's pnoJpegLib library (http://www.bin-people.de/pnoJpegLib/)
It worked better for me and IMHO it's better documented. Oh, yes, and it's faster! Miguel Christiano Weirich wrote:
I�m trying to write a .jpg file in the memory card of a palm, but the resulting image is all distorted. The function to write is as follow: JpegLibCreateImageDescrPtr(jpegLibRefNum, &imageJPG, 320, 240, 1, captureInfo.pInicio); JpegLibCreateDataVFS(jpegLibRefNum, &dataJPG, fileP); erro = JpegLibWrite(jpegLibRefNum, &imageJPG, NULL, &dataJPG); I don�t know exactly what is the last parameter of JpegLibCreateImageDescrPtr. I used the ptr to the bitmap obtained from the capture callback, but I think my error could be there. Any experience on it? 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/
