CompressionLevel Property
The compression level to use.
Syntax
ANSI (Cross Platform) int GetCompressionLevel();
int SetCompressionLevel(int iCompressionLevel); Unicode (Windows) INT GetCompressionLevel();
INT SetCompressionLevel(INT iCompressionLevel);
@property (nonatomic,readwrite,assign,getter=compressionLevel,setter=setCompressionLevel:) int compressionLevel; - (int)compressionLevel; - (void)setCompressionLevel:(int)newCompressionLevel;
#define PID_ZIPSTREAM_COMPRESSIONLEVEL 1 IPWORKSZIP_EXTERNAL void* IPWORKSZIP_CALL IPWorksZip_ZipStream_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSZIP_EXTERNAL int IPWORKSZIP_CALL IPWorksZip_ZipStream_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
4
Remarks
The compression level to use, from 1 to 6. Higher values will cause the component to compress better; lower values will cause the component to compress faster.
When GetCompressionStream is invoked the stream will be created with the specified compression level. After a stream has been created it is independent of the control, and changing CompressionLevel will have no effect on existing streams.
Data Type
Integer