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



Gets or sets transfer mode to be used by the TWAIN source.

Syntax

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

Return Value

Transfer mode to be used by the TWAIN source. Possible values are (according to the TWAIN 2.0 specification): If you set the TransferMode property to TransferMechanismMemory and set DumpMemoryBuffersToFile to true, then the Acquire method will write the received buffers (either compressed or uncompressed) to the output directly to the output file specified by the FileName property.
If you set the TransferMode property to TransferMechanismMemory and a compression is specified by setting the BufferedMemoryCompression property, and you set the DumpMemoryBuffersToFile property to false, then the Acquire method will decompress the acquired data and generate a result image.

Example

Refer to TwainProperties.DataTransfer example.

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