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