Leadtools.Twain Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
CompressionMode Property
See Also 
Leadtools.Twain Namespace > TwainTransferOptions Structure : CompressionMode Property




Gets or sets the compression type to use when transferring data from the current TWAIN source. This property is valid only if the TransferMode property is set to TwainTransferMode.Buffer.

Syntax

Visual Basic (Declaration) 
Public Property CompressionMode As TwainCompressionMode
Visual Basic (Usage)Copy Code
Dim instance As TwainTransferOptions
Dim value As TwainCompressionMode
 
instance.CompressionMode = value
 
value = instance.CompressionMode
C# 
public TwainCompressionMode CompressionMode {get; set;}
Managed Extensions for C++ 
public: __property TwainCompressionMode get_CompressionMode();
public: __property void set_CompressionMode( 
   TwainCompressionMode value
);
C++/CLI 
public:
property TwainCompressionMode CompressionMode {
   TwainCompressionMode get();
   void set (TwainCompressionMode value);
}

Return Value

The memory compression type to be used when the transfer mode is TwainTransferMode.Buffer.

Example

For an example, refer to TransferOptions.

Remarks

To update this property with the current value, call the TransferOptions property.

To set the compression type, assign a new value to this property and call the TransferOptions property.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also