Once the user has established a TWAIN session, the TWAIN source to use for acquiring images should be selected. To determine the TWAIN sources available on the system, LEADTOOLS provides the TwainSession.QuerySourceInformation method.
To select the TWAIN source to use for acquiring images, call the TwainSession.SelectSource method. Once a source is selected, the SelectedSourceName property will contain the name of that selected source and the SelectedSourceTwainVersion property will contain the version of that selected source.
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.
LEADTOOLS TWAIN toolkit also provides properties, methods and events to manage the TWAIN sources installed on the system:
TwainSession.SelectSource displays a dialog that lists all available TWAIN sources installed on the system. This dialog lets the user select the TWAIN source he or she wants to use. TwainSession.QuerySourceInformation method is used to get all-available TWAIN sources and their information like source name, productFamily, manufacturer and the TWAIN version it supports.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document