[Implemented] Image Compression to memory

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

[Implemented] Image Compression to memory

Post 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?