Acquires images. Most simple way to scan. Preferred way for scanning in the console applications.
Function will not return until scanning is finished.
Namespace: TwainScanning
Assembly: TwainScanning (in TwainScanning.dll) Version: 1.3.0.0 (1.3.0.0)
Syntax
public ImageCollector Acquire( bool showUI, bool closeUIAfterAcquire = true, DataSourceErrorInfo err = null, Nullable<TwSX> transferMechanism = 0, int count = -1 )
Parameters
- showUI
- Type: SystemBoolean
if set to true scanner's UI will be shown. - closeUIAfterAcquire (Optional)
- Type: SystemBoolean
if set to true scanner's UI wll be closed after all images are scanned. - err (Optional)
- Type: TwainScanningDataSourceErrorInfo
- transferMechanism (Optional)
- Type: SystemNullableTwSX
The transfer mechanism TwSX. If set to null curent transfer mechanism will be used. - count (Optional)
- Type: SystemInt32
Count of images to be scanned. If set to null scanner's current image count will be used. If set to -1 all images will be scanned.
Return Value
Type: ImageCollectorObject that is used for accessing all scanned images.
See Also