ImageEn, unit ievision

TIEVisionInputOutput.zcompress

TIEVisionInputOutput.zcompress


Declaration

procedure zcompress(inputStream: TIEVisionStream; outputStream: TIEVisionStream; compressionLevel: int32_t = -1); safecall;


Description

Compress an input stream to output stream using zlib.

Parameter Description
inputStream Input stream to compress
outputStream Output stream (compressed)
compressionLevel Optional compression level. See below:

Compression levels:
Parameter Description
-1 Default compression
0 No compression
1 Best speed
2..8 Compromises between speed and compression
9 Best compression


See Also

zdecompress