New to Telerik Document ProcessingStart a free 30-day trial

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:

C#
public enum CompressionLevel

Fields

Maximum compression ratio (slowest processing).

C#
Best = 9

Fastest execution with minimal size reduction.

C#
Fastest = 1

Alias of NoCompression.

C#
Level0 = 0

Alias of Fastest.

C#
Level1 = 1

Slightly slower than level 1 with modestly improved compression.

C#
Level2 = 2

Slower than level 2 for incremental size savings.

C#
Level3 = 3

Balances speed and ratio between levels 3 and 5.

C#
Level4 = 4

Provides better compression than level 4 with moderate added cost.

C#
Level5 = 5

Alias of Optimal.

C#
Level6 = 6

Emphasizes compression ratio over speed compared to level 6.

C#
Level7 = 7

Higher ratio than level 7 with additional CPU cost.

C#
Level8 = 8

Alias of Best.

C#
Level9 = 9

Stores data without applying compression (raw copy).

C#
NoCompression = 0

Default balance of speed and compression efficiency for general use.

C#
Optimal = 6