mirror of
https://github.com/cyanfish/naps2.git
synced 2024-07-14 18:40:39 +03:00
Update HelloWorldSample
This commit is contained in:
parent
4937dd6730
commit
6348be6dc6
@ -14,12 +14,9 @@ public class HelloWorldSample
|
||||
var controller = new ScanController(scanningContext);
|
||||
ScanDevice device = (await controller.GetDeviceList()).First();
|
||||
var options = new ScanOptions { Device = device };
|
||||
await foreach(var image in controller.Scan(options))
|
||||
await foreach (var image in controller.Scan(options))
|
||||
{
|
||||
using (image)
|
||||
{
|
||||
Console.WriteLine("Scanned a page!");
|
||||
}
|
||||
Console.WriteLine("Scanned a page!");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user