Loe inglise keeles Redigeeri

Jagamisviis:


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 int CompressionLevel { get; set; }

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.

Applies to

Toode Versioonid
.NET 9