VintaSoft Twain .NET SDK v10.2
Vintasoft.Twain Namespace / Device Class / TransferMode Property




In This Topic
    TransferMode Property (Device)
    In This Topic
    Gets or sets the transfer mode of device.
    Syntax
    'Declaration
     
    Public Property TransferMode As TransferMode
    'Usage
     
    Dim instance As Device
    Dim value As TransferMode
     
    instance.TransferMode = value
     
    value = instance.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 modei> because the 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: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also