Question
How can several images be scanned without an interface?
Answer
If the scanner supports non-interface operation, its operation can be customized via the ScanSource object method.
// C#
IScanManager scanManager = Engine.CreateScanManager();
ScanSourceUITypeEnum UiType = ScanSourceUITypeEnum.SSUIT_All;
ScanSourceApiTypeEnum ApiType = ScanSourceApiTypeEnum.SSAT_All;
// Getting list of all available scanner
IScanSources sources = scanManager.FindScanSources(UiType, ApiType);
IScanCallback callBack = new ScanningCallback();
// Use Item(0) if you have only one scanner
IScanSource source = sources.Item( 0 );
IScanSourceSettings settings = source.ScanSettings;
settings.MultipleImagesEnabled = true;
// Scanning without interface
source.Scan(ScanSourceUITypeEnum.SSUIT_None, scannedImagesPath, callBack);
Comments
0 comments
Please sign in to leave a comment.