DataSourceAcquire Method (Boolean, Boolean, DataSourceErrorInfo, NullableTwSX, Int32)Terminal Works - TwainScanning.Net Library
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.4.0 (1.3.4.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: ImageCollector
Object that is used for accessing all scanned images.
See Also

Reference