compressing jpeg in memory - RealWorld forums

Log-in or register.

compressing jpeg in memory

IngegnereCT
on February 1st 2006

Hello i have to use a DIB image as texture.
but it is in another PC!
so for transfer the image i think i have to compress it in JPeg without write it in the HD
as here:

Cimage *image;
image->save("new.jpg");

because it will be more quickly and i can break my HD using the HD many times.
So, How can i write a Jpeg in memory and transfer it to another pc where i can reconvert it in a DIB image?
do you prompt me alternative metods?
my problem isn't how to transfer but how to compress

thanks a lot

Vlasta
on February 2nd 2006

I do not know what library for image processing you are using, but I recommend you to study its documentation. It is likely that your library is able to compress images in memory. If not, check out for example
"libjpeg". Alternatively, Windows 2000 and higher can use and work with JPGs in their bitmap and DIB functions.

Page views: 2777       Posts: 2      
What about ICL files?
Select background
Vista & Win 7 icons