ImageGear for .NET
ImageFileName Property




Gets or sets the name of a file or directory to which a scanned image will be stored when Disk Transfer Mode is used.
Syntax
'Declaration
 
Public Property ImageFileName As String
'Usage
 
Dim instance As ImGearTWAIN
Dim value As String
 
instance.ImageFileName = value
 
value = instance.ImageFileName
public string ImageFileName {get; set;}
public: __property string* get_ImageFileName();
public: __property void set_ImageFileName( 
   string* value
);
public:
property String^ ImageFileName {
   String^ get();
   void set (    String^ value);
}

Property Value

String value.
Remarks

Disk Transfer Mode should be used when the TWAIN driver should do the file saving. If instead ImageGear saving is preferred, then AcquireToFile should be used.

If ImageFileName is set to a directory, then when Disk Transfer Mode is used, a separate file will be created for each scanned page, for example: 0000001.tif, 00000002.tif, 00000003.tif, etc. If these files already exist, the existing files will be replaced.

If ImageFileName is set to a filename, then when Disk Transfer Mode is used, a separate file will be created for each scanned page, using the ImageFileName. For example, if ImageFileName = "ScanTest.bmp", then each page will be named as follows: ScanTest.bmp, ScanTest0.bmp, ScanTest1.bmp, ScanTest10.bmp, ScanTest11.bmp, etc. If these files already exist, they will be replaced.

Disk Transfer mode does not support saving multiple pages to a single file regardless of whether the format supports it. A separate file will always be created for each page.

See Also

Reference

ImGearTWAIN Class
ImGearTWAIN Members

 

 


©2015. Accusoft Corporation. All Rights Reserved.

Send Feedback