GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / TwainOpenDefaultSource Method





In This Topic
TwainOpenDefaultSource Method (GdPictureImaging)
In This Topic
Opens the default TWAIN device previously selected in the Source Manager's Select Source dialog box for further processing using TWAIN.
Overload List
OverloadDescription
Opens the default source (the TWAIN device) previously selected in the Source Manager's Select Source dialog box for further usage. Be aware, that if some source is already opened, this method does nothing and returns true.

Please note that you need to call this method for each scanning process in order to ensure your TWAIN session is executed correctly. You can also run this method if you need to set the TWAIN state to TwainStatus.TWAIN_SOURCE_OPEN (State 4) from previous states, which can only be TwainStatus.TWAIN_SM_OPEN (State 3), TwainStatus.TWAIN_SM_LOADED (State 2) or TwainStatus.TWAIN_PRESESSION (State 1). For more details on TWAIN states, please refer to the TWAIN Specification.

 
Opens the default source (the TWAIN device) previously selected in the Source Manager's Select Source dialog box for further usage. Be aware, that if some source is already opened, this method does nothing and returns true.

Please note that you need to call this method for each scanning process in order to ensure your TWAIN session is executed correctly. You can also run this method if you need to set the TWAIN state to TwainStatus.TWAIN_SOURCE_OPEN (State 4) from previous states, which can only be TwainStatus.TWAIN_SM_OPEN (State 3), TwainStatus.TWAIN_SM_LOADED (State 2) or TwainStatus.TWAIN_PRESESSION (State 1). For more details on TWAIN states, please refer to the TWAIN Specification.

 
See Also