ZLibCompressionOptions.CompressionLevel Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the compression level for a compression stream.
public:
property int CompressionLevel { int get(); void set(int value); };
public int CompressionLevel { get; set; }
member this.CompressionLevel : int with get, set
Public Property CompressionLevel As Integer
Property Value
The compression level for a compression stream. The default value is -1.
Exceptions
The value is less than -1 or greater than 9.
Remarks
Can accept any value between -1 and 9 (inclusive). 0 gives no compression, 1 gives best speed, 9 gives best compression,
and -1 requests the default compression level, which is equivalent to 6.