TransferMode Property (Device)
In This Topic
Gets or sets the transfer mode, which should be used when images are acquiring from TWAIN device.
The property also changes value of DeviceCapabilityId.IXferMech capability if device is opened.
Syntax
Property Value
Default value is
TransferMode.Memory.
Remarks
In Native transfer mode device transfers Bitmap object to the application. The transfer mode is supported by any device.
In Memory transfer mode device transfers raw image data to the application. This transfer mode is supported by any device. Some devices can transfer compressed image data. This mode allows to transfer image data of any format because image data are transferred as bytes.
In File transfer mode device saves scanned image directly to a file without any memory operations. Not all devices support this transfer mode.
We recommend to use the Native or Memory transfer mode in the following scenarios:
- Application needs to acquire image from scanner, preview the acquired image, save image to a file or upload to the server.
- Application needs to acquire image from scanner, preview the acquired image, process the acquired image, save image to a file or upload to the server.
We
recommend to use the
File transfer mode in the following scenarios:
- Application needs to acquire image from scanner and save to a file without image preview and processing.
We
recommend to use the
Memory transfer mode instead of the
Native transfer mode because
Memory transfer mode:
- Allows to transfer compressed image data.
- Uses less peak memory than the Native transfer mode.
- Allows to transfer 16-bit grayscale, 48-bit color images and images with "custom" format.
- Allows to create custom progress for image acquisition process.
Requirements
Target Platforms: .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5
See Also