ZLibCompressionOptions.CompressionLevel Property
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
The compression level for a compression stream. The default value is -1.
The value is less than -1 or greater than 9.
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.
Product | Versions |
---|---|
.NET | 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: