Enum CompressionLevel
The compression level to be used when using a DeflateStream or ZlibStream with CompressionMode.Compress.
public enum CompressionLevel
- Extension Methods
Fields
BestCompression = 9The "best" compression, where best means greatest reduction in size of the input data stream. This is also the slowest compression.
BestSpeed = 1The fastest but least effective compression.
Default = 6The default compression level, with a good balance of speed and compression efficiency.
Level0 = 0Same as None.
Level1 = 1A synonym for BestSpeed.
Level2 = 2A little slower, but better, than level 1.
Level3 = 3A little slower, but better, than level 2.
Level4 = 4A little slower, but better, than level 3.
Level5 = 5A little slower than level 4, but with better compression.
Level6 = 6A synonym for Default.
Level7 = 7Pretty good compression!
Level8 = 8Better compression than Level7!
Level9 = 9A synonym for BestCompression.
None = 0None 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.