Leadtools.Wia Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Compression Property
See Also 
Leadtools.Wia Namespace > WiaDataTransferProperties Structure : Compression Property



Gets or sets the compression to be used while performing data transfer from WIA source.

Syntax

Visual Basic (Declaration) 
Public Property Compression As WiaCompressionMode
Visual Basic (Usage)Copy Code
Dim instance As WiaDataTransferProperties
Dim value As WiaCompressionMode
 
instance.Compression = value
 
value = instance.Compression
C# 
public WiaCompressionMode Compression {get; set;}
C++/CLI 
public:
property WiaCompressionMode Compression {
   WiaCompressionMode get();
   void set (WiaCompressionMode value);
}

Return Value

The compression to be used while performing data transfer from WIA source. Possible values are (according to Microsoft SDK documentation):

WiaCompressionMode.None

No compression is to be used.

WiaCompressionMode.Rle4

RLE4 compression.

WiaCompressionMode.Rle8

RLE8 compression.

WiaCompressionMode.Group3

Group 3 compression.

WiaCompressionMode.Group4

Group 4 compression.

WiaCompressionMode.Jpeg

JPEG compression.

WiaCompressionMode.Jbig

JBIG compression (only supported in Windows Vista or later).

WiaCompressionMode.Jpeg2000

JPEG 2000 compression (only supported in Windows Vista or later).

WiaCompressionMode.Png

PNG compression (only supported in Windows Vista or later).

For more information about these compression types, please refer to WIA_IPA_COMPRESSION property ID in Microsoft Windows SDK Documentation.

Example

Refer to WiaSession.GetRootItem example.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family

See Also