Managing the TWAIN Source
Once the user has initialized the TWAIN session, the TWAIN source to use for acquiring images should be selected. To determine whether a TWAIN source is available on your system, use the IsAvailable method. If there are TWAIN sources available, you can determine the number of TWAIN sources available on the system using the SourceCount property.
To determine the TWAIN sources available on the system LEADTOOLS provides the SourceName property. This property contains the name of the TWAIN source.
To select the TWAIN source to use for acquiring images, call the SelectSource method. Once a source is selected, the SelectedSourceName property will contain the name of that selected source.
If the source is to be selected without displaying a user interface, you can set the source name using the AcquireSourceName property.
LEADTOOLS provides several properties for getting information about TWAIN source product names and manufacturers names.
The product name of the currently selected TWAIN source can be found in the SelectedFamilyName property. The names of all the TWAIN products available on the system can be found in the FamilyName property.
The manufacturer's name of the currently selected TWAIN source can be found in the SelectedManufacturerName property. The names of the manufacturers of all the TWAIN products available on the system can be found in the ManufacturerName property.
Each TWAIN source has certain capabilities. The user may wish to alter these capability settings before acquiring images from the TWAIN source. For more information on this, refer to Getting and Setting Capabilities.