VintaSoft Twain .NET SDK 15.0: Documentation for .NET developer
Vintasoft.WpfTwain Namespace / Device Class / TransferMode Property
Syntax Remarks Requirements SeeAlso
In This Topic
    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
    'Declaration
    
    Public Property TransferMode As TransferMode
    
    
    public TransferMode TransferMode { get; set; }
    
    
    public: __property TransferMode get_TransferMode();
    public: __property void set_TransferMode(
    TransferMode value
    );
    public:
    property TransferMode TransferMode { TransferMode get(); void set(TransferMode value); }

    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:

    1. Application needs to acquire image from scanner, preview the acquired image, save image to a file or upload to the server.
    2. 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:
    1. 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:
    1. Allows to transfer compressed image data.
    2. Uses less peak memory than the Native transfer mode.
    3. Allows to transfer 16-bit grayscale, 48-bit color images and images with "custom" format.
    4. Allows to create custom progress for image acquisition process.

    Requirements

    Target Platforms: .NET 8, .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also