Hello , 
I am using jpeglib/pnojpeglib for converting jpeg to palm os bmp. 
My jpeg's dimensions are 440x297 and I am trying to copy the bits of the bitmap 
that comes back from the libraries inorder to save them to record or even to 
mem handle. The problems is that the size that BmpBitsSize() returns when 
invoking it on the bmp which was created by the library is really small 
(something like 24 bytes for 440x297 jpeg.. ) Because of that I a copy just 
this size of bits anf therefore when trying to restore the bitmap , it is 
corrupted.  

Basiclly , What I am doing is this ?

BitmapPtr bmp = decodeWithJpeglib(jpegFileStream)
int size = BmpBitsSize(bmp) 
MemMove (memHandle , BmpGetBits() , size) 

Has anyone encountered this problem or have any Idea ??

Thanks a lot in advance..

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

Reply via email to