Page 1 of 1

[Implemented] Image Compression to memory

Posted: Thu Jul 08, 2004 8:53 am
by DoubleDutch
Implemented as EncodeImage()

The image compression library should allow you to compress to a memory location (not just a file).

This would be really handy, eg

Code: Select all

packedsize=CompressImage(sourceid,memoryaddr,imageplugin)
where packed size is zero on failure, memoryaddr size has to be at least x*y*4+2k?
zero on failure....

and

Code: Select all

method=UnCompressImage(memoryaddr,destid)
where method is the method used, zero on failure to detect
destid will be an image created by the command

What do you think?