PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

RGB image to jpg

Hi all! I'm looking for a way to convert a 24 bits RAW image in RGB format to JPG. Now I'm using JpegLib from this site http://www.pocketpcdn.com/articles/savejpeg.html
But the funcion I'm using (WriteRGBBytesIntoJpegFile) writes the resultant image into a file and I would like to have this image into a buffer.
Can anyvody help me?
Thanks.
I haven't looked this up now, but as far as I remember the JPEG library is extremely configurable. One can provide custom handlers for basically everything including memory and file handling...

Daniel
Hi Daniel, thanks for your answer.
I have been looking for and I don't know how to configure it. Can you give me any clue to get it?
Thanks.