Accusoft.TwainPro9.Net
TwainDevice Class Methods

For a list of all members of this type, see TwainDevice members.

Public Methods
 NameDescription
Public MethodCloseSessionDisables and closes the current Data Source and Data Source Manager. For every OpenSession or OpenDataSourceManager method call you need to close the TwainPRO session with CloseSession. This method will also Cancel any pending image transfers if the Data Source was in the Image Transfer state.  
Public MethodDisplayUserInterfaceDisplays the User Interface.  
Public MethodDisposeDisposes of unmanaged resources.  
Public MethodGetCapabilityOverloaded. Returns a CapabilityContainer with information for the specified capability.  
Public MethodGetCapabilityConstantDescriptionReturns a description of a constant for the current capability. This is a runtime, read-only property.  
Public MethodGetCustomDataSourceDataGets custom data (current settings, e.g., DPI, paper size, color format) from the source to the application. The source settings will be returned in a format that is source dependent and not defined by TWAIN.  
Public MethodIsCapabilitySupportedOverloaded. Determines if the current capability is supported by the TWAIN device.  
Public MethodLoadSettingsLoads the scanner settings from file.  
Public MethodOpenDataSourceManagerOpens the Source Manager. Use this method only to set the Data Source without using the SelectSource method.  
Public MethodOpenSessionOpens the Data Source Manager and Data Source, placing TwainPRO into the Capability Negotiation state.  
Public MethodSaveSettingsSaves the scanner settings to file.  
Public MethodSelectSourceDisplays the TWAIN Data Source Manager's Source Selection User Interface (UI) so the user can choose which Data Source is the current Source.  
Public MethodSetCapabilitySets a TWAIN capability using the specified values.  
Public MethodSetCustomDataSourceDataSets custom data (current settings, e.g., DPI, paper size, color format) of the source from the application. The source settings are in a format that is source dependent and not defined by TWAIN.  
Public MethodStartSessionEnables the Current Data Source and places it into the Image Transfer state. Displays the Data Source User Interface if ShowUserInterface is True. This method will return when the user closes the UI if the ShowUserInterface property is True or after the image transfer if ShowUserInterface is False.  
Top
See Also

Reference

TwainDevice Class
Accusoft.TwainProSdk Namespace

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback