IdeaBlade DevForce 2010 Help Reference
CompressionLevel Enumeration
See Also  Send Feedback
IdeaBlade.Core Assembly > Ionic.Zlib Namespace : CompressionLevel Enumeration



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

Syntax

Visual Basic (Declaration) 
Public Enum CompressionLevel 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
Visual Basic (Usage)Copy Code
Dim instance As CompressionLevel
C# 
public enum CompressionLevel : System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
C++/CLI 
public enum class CompressionLevel : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  

Members

MemberDescription
BestCompression The "best" compression, where best means greatest reduction in size of the input data stream. This is also the slowest compression.
BestSpeed The fastest but least effective compression.
Default The default compression level, with a good balance of speed and compression efficiency.
Level0 Same as None.
Level1 A synonym for BestSpeed.
Level2 A little slower, but better, than level 1.
Level3 A little slower, but better, than level 2.
Level4 A little slower, but better, than level 3.
Level5 A little slower than level 4, but with better compression.
Level6 A synonym for Default.
Level7 Pretty good compression!
Level8 Better compression than Level7!
Level9 A synonym for BestCompression.
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.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Ionic.Zlib.CompressionLevel

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.