DotNetCompression Class Reference for Windows Phone
CreateEncoder Method (CompressionFactory)






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 Overridable Function CreateEncoder( _
   ByVal compressionLevel As System.Integer _
) As ICompressionEncoder
'Usage
 
Dim instance As CompressionFactory
Dim compressionLevel As System.Integer
Dim value As ICompressionEncoder
 
value = instance.CreateEncoder(compressionLevel)
public virtual ICompressionEncoder CreateEncoder( 
   System.int compressionLevel
)
public function CreateEncoder( 
    compressionLevel: System.Integer
): ICompressionEncoder; virtual; 
public function CreateEncoder( 
   compressionLevel : System.int
) : ICompressionEncoder;
public: virtual ICompressionEncoder* CreateEncoder( 
   System.int compressionLevel
) 
public:
virtual ICompressionEncoder^ CreateEncoder( 
   System.int compressionLevel
) 

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

CompressionFactory Class
CompressionFactory Members

Send Feedback