Xceed .NET Libraries Documentation
SetTemplate Method


Xceed.Compression Assembly > Xceed.Compression.LZMA Namespace > LZMAOptions Class : SetTemplate Method
Compression level to use.
Sets the LZMAOptions properties to values appropriate to the passed level of compression.
Syntax
'Declaration
 
Public Sub SetTemplate( _
   ByVal compressionLevel As CompressionLevel _
) 
'Usage
 
Dim instance As LZMAOptions
Dim compressionLevel As CompressionLevel
 
instance.SetTemplate(compressionLevel)
public void SetTemplate( 
   CompressionLevel compressionLevel
)

Parameters

compressionLevel
Compression level to use.
Remarks

If CompressionLevel.Lowest is supplied, the dictionary size will be 4k.

If CompressionLevel.Normal is supplied, the dictionary size will be 16MB.

If CompressionLevel.Highest is supplied, the dictionary size will be 32MB.

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

LZMAOptions Class
LZMAOptions Members