Allows to acquire images from the scanner synchronously. This 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 DataSourceErrorInfo Acquire( IImageCollector collector, bool showUI, bool closeUIAfterAcquire = true, Nullable<TwSX> transfeMode = 0, Nullable<int> count = -1 )
Parameters
- collector
- Type: TwainScanning.CollectorsIImageCollector
The collector. - showUI
- Type: SystemBoolean
if set to true [show UI]. - closeUIAfterAcquire (Optional)
- Type: SystemBoolean
if set to true [close UI after acquire]. - transfeMode (Optional)
- Type: SystemNullableTwSX
The transfe mode. - count (Optional)
- Type: SystemNullableInt32
The count. Use -1 to acquire all images.
Return Value
Type: DataSourceErrorInfoSee Also