Sets or returns the transfer mode.
Enumerated value/Integer
Value Description TWSX_NATIVE (0) NATIVE mode is the default mode. In this mode, the whole image is transfered in a single memory block. TWSX_FILE (1) DISK FILE mode is not required by TWAIN specification. In this mode, the image is transfered to a specified file directly. The disk file mode is ideal when transferring large images that might encounter memory limitations with Native mode. TWSX_MEMORY (2) MEMORY mode is also required by TWAIN, like NATIVE mode. Although this mode is the most complex, Dynamic TWAIN handles the tranfer details, making it as simple as NATIVE mode.
ObjectName.TransferMode
The default value of the TransferMode property is TWSX_NATIVE (0).
For DISK FILE mode, since it is not required by TWAIN, the application needs to make sure it is supported by the current Source. One way to do this is checking the TransferMode property after OpenSource() to see if it is still TWSX_FILE. The following is a sample:
VB Sample:
|
When an error occurs and IfThrowException property is TRUE, an exception will be thrown. Check ErrorCode property and ErrorString property for error information.