enum CompressionLevel : System.Enum, System.IComparable, System.IFormattable, System.IConvertible

The compression level to be used when using a DeflateStream or ZlibStream with CompressionMode.Compress.

CompressionLevel None

None means that the data will be simply stored, with no change at all. If you are producing ZIPs for use on Mac OSX, be aware that archives produced with CompressionLevel.None cannot be opened with the default zip reader. Use a different CompressionLevel.

CompressionLevel Level0

Same as None.

CompressionLevel BestSpeed

The fastest but least effective compression.

CompressionLevel Level1

A synonym for BestSpeed.

CompressionLevel Level2

A little slower, but better, than level 1.

CompressionLevel Level3

A little slower, but better, than level 2.

CompressionLevel Level4

A little slower, but better, than level 3.

CompressionLevel Level5

A little slower than level 4, but with better compression.

CompressionLevel Default

The default compression level, with a good balance of speed and compression efficiency.

CompressionLevel Level6

A synonym for Default.

CompressionLevel Level7

Pretty good compression!

CompressionLevel Level8

Better compression than Level7!

CompressionLevel BestCompression

The “best” compression, where best means greatest reduction in size of the input data stream. This is also the slowest compression.

CompressionLevel Level9

A synonym for BestCompression.