DotNetCompression Class Reference for Windows Phone
CreateEncoder Method (DeflateCompression)






Specifies the compression level to be used when compressing. It may be set to an integer from 1 to 9. Generally, lower compression levels result in faster performance while higher compression levels result in better compression.
Initializes the ICompressionEncoder implementation providing the compression method.
Syntax
'Declaration
 
Public Overrides Function CreateEncoder( _
   ByVal compressionLevel As System.Integer _
) As ICompressionEncoder
'Usage
 
Dim instance As DeflateCompression
Dim compressionLevel As System.Integer
Dim value As ICompressionEncoder
 
value = instance.CreateEncoder(compressionLevel)
public override ICompressionEncoder CreateEncoder( 
   System.int compressionLevel
)
public function CreateEncoder( 
    compressionLevel: System.Integer
): ICompressionEncoder; override; 
public override function CreateEncoder( 
   compressionLevel : System.int
) : ICompressionEncoder;
public: ICompressionEncoder* CreateEncoder( 
   System.int compressionLevel
) override 
public:
ICompressionEncoder^ CreateEncoder( 
   System.int compressionLevel
) override 

Parameters

compressionLevel
Specifies the compression level to be used when compressing. It may be set to an integer from 1 to 9. Generally, lower compression levels result in faster performance while higher compression levels result in better compression.

Return Value

The ICompressionEncoder implementation providing the compression method.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DeflateCompression Class
DeflateCompression Members
Base Implementation in CreateEncoder

Send Feedback