ImageGear for .NET
ImGearTWAIN Class Members
Properties  Methods  Events


The following tables list the members exposed by ImGearTWAIN.

Public Constructors
 NameDescription
Public ConstructorImGearTWAIN ConstructorInitializes a new instance of the ImGearTWAIN class.  
Top
Public Properties
 NameDescription
Public PropertyApplicationName Gets or sets the name of the application that uses TWAIN.  
Public PropertyAudioFileName Gets or sets the file name for recorded audio.  
Public PropertyDataSources Gets a list of available TWAIN Data Sources and identifies the one that is the default Data Source.  
Public PropertyDriverVersionBuild Gets the build part of the version number of the TWAIN Data Source Manager.  
Public PropertyDriverVersionMajor Gets the major part of the version number of the TWAIN Data Source Manager.  
Public PropertyDriverVersionMinor Gets the minor part of the version number of the TWAIN Data Source Manager.  
Public PropertyImageFileName Gets or sets the name of a file or directory to which a scanned image will be stored when Disk Transfer Mode is used.  
Public PropertyUseUI Gets or sets a value indicating whether to use the scanner's interface.  
Public PropertyWindowHandle Gets or sets the window handle to use as the parent window.  
Top
Public Methods
 NameDescription
Public MethodAcquireOverloaded. Scan multiple pages from a scanner equipped with an AutomaticDocumentFeeder (ADF). Each page is saved to an ImageGear.Core.ImGearPage available in an AfterPage event.  
Public MethodAcquireToDocScan multiple pages from a scanner equipped with an Automatic Document Feeder (ADF). Pages are saved to an ImageGear.Core.ImGearDocument.  
Public MethodAcquireToFile Scan multiple pages from a scanner equipped with an Automatic Document Feeder (ADF) to a specified file or directory.  
Public MethodAcquireToPage This method causes the scanning of a single page through a TWAIN device.  
Public MethodChangeDirectory This method selects the current device within the Data Source (camera, storage, etc).  
Public MethodCloseFile This method closes the file system context.  
Public MethodCloseSource This method closes the currently opened Data Source and it also closes the connection with the Data Source Manager.  
Public MethodCopyFile This method copies the specified file from one directory to another.  
Public MethodCreateDirectory This method creates a new directory within the current directory.  
Public MethodDeleteFile This method deletes a file or directory on the device.  
Public MethodDispose Releases resources used by the class.  
Public MethodFormatMedia

This method formats the specified storage device.

Caution: All images and subdirectories under the selected device will be destroyed.

 
Public MethodGetCapability This method gets information about a capability.  
Public MethodGetCurrentImage This method retrieves the image that the device's file system context currently points to.  
Public MethodGetFileInfo This method gets information about the requested file.  
Public MethodGetFirstFile This method gets the first filename in a directory, and returns information about that file (the same information that can be retrieved with GetFileInfo).  
Public MethodGetImageLayout Gets the image layout of the selected TWAIN device.  
Public MethodGetNextFile This method gets the next filename in a directory, and returns information about that file (the same information that can be retrieved with GetFileInfo).  
Public MethodLoadCustomDSData This method loads the settings from the specified file, and sets the data source with these settings.  
Public MethodOpenSource This method opens a connection to the TWAIN Data Source Manager and then loads the specified Data Source into main memory and causes its initialization.  
Public MethodRenameFile This method renames (and optionally moves) a file or directory. Absolute and relative path names are supported.  
Public MethodSaveCustomDSData This method queries the data source for its current settings, and saves these settings to the specified file.  
Public MethodSetCapability This method sets or resets the current value of a capability.  
Public MethodSetImageLayout Sets the image layout of the selected TWAIN device.  
Public MethodShowSourceUI This method shows the Data Source UI to allow the user to manipulate the source's current settings, but not acquire an image.  
Top
Protected Methods
 NameDescription
Protected MethodFinalize Finalizes an instance of the ImGearTWAIN class. Diposes of unmanaged resources if they were not already disposed.  
Top
Public Events
 NameDescription
Public EventAfterPageThis event is fired after each page is scanned using any of the scanning methods of ImGearTWAIN.  
Public EventBeforePageThis event is fired before each page is scanned using any of the scanning methods of ImGearTWAIN.  
Top
See Also

Reference

ImGearTWAIN Class
ImageGear.TWAIN Namespace

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback