Enum
CompressionLevel

Specifies the trade‑off between speed and size when compressing data; higher values favor smaller output while lower values favor throughput.

Definition

Namespace:Telerik.Windows.Zip

Assembly:Telerik.Windows.Zip.dll

Syntax:

cs-api-definition
public enum CompressionLevel

Fields

Best

Maximum compression ratio (slowest processing).

Declaration

cs-api-definition
Best = 9

Field Value

CompressionLevel

Fastest

Fastest execution with minimal size reduction.

Declaration

cs-api-definition
Fastest = 1

Field Value

CompressionLevel

Level0

Alias of NoCompression.

Declaration

cs-api-definition
Level0 = 0

Field Value

CompressionLevel

Level1

Alias of Fastest.

Declaration

cs-api-definition
Level1 = 1

Field Value

CompressionLevel

Level2

Slightly slower than level 1 with modestly improved compression.

Declaration

cs-api-definition
Level2 = 2

Field Value

CompressionLevel

Level3

Slower than level 2 for incremental size savings.

Declaration

cs-api-definition
Level3 = 3

Field Value

CompressionLevel

Level4

Balances speed and ratio between levels 3 and 5.

Declaration

cs-api-definition
Level4 = 4

Field Value

CompressionLevel

Level5

Provides better compression than level 4 with moderate added cost.

Declaration

cs-api-definition
Level5 = 5

Field Value

CompressionLevel

Level6

Alias of Optimal.

Declaration

cs-api-definition
Level6 = 6

Field Value

CompressionLevel

Level7

Emphasizes compression ratio over speed compared to level 6.

Declaration

cs-api-definition
Level7 = 7

Field Value

CompressionLevel

Level8

Higher ratio than level 7 with additional CPU cost.

Declaration

cs-api-definition
Level8 = 8

Field Value

CompressionLevel

Level9

Alias of Best.

Declaration

cs-api-definition
Level9 = 9

Field Value

CompressionLevel

NoCompression

Stores data without applying compression (raw copy).

Declaration

cs-api-definition
NoCompression = 0

Field Value

CompressionLevel

Optimal

Default balance of speed and compression efficiency for general use.

Declaration

cs-api-definition
Optimal = 6

Field Value

CompressionLevel