260 likes | 400 Views
Building Windows apps that use image scanners. Monica Czarny Windows Program Manager 3-025. What we will cover today. Why incorporate scanning in your app? Your app + scanner device compatibility Simplicity of the new Scanner namespace Demo: scanning from an app Scan API code snippets.
E N D
Building Windows apps that use image scanners Monica Czarny Windows Program Manager 3-025
What we will cover today • Why incorporate scanning in your app? • Your app + scanner device compatibility • Simplicity of the new Scanner namespace • Demo: scanning from an app • Scan API code snippets
archive share 📎 modify ✎ Digital world extract • Users want experiences, information, intelligence
Digital world • Things in the physical world are being left behind checks 📃legal contracts store receipts photos medical records
There are more scanners out there than you may think 66%of printers connected to Windows are also scanners
Why is content left behind? JPEG, OXPS , Windows 8.1
Scan Runtime APIs built on top of WIA means that you can use any Windows logoed scanner Scan Runtime APIs Windows 8.1 Store app Windows 8.1 Store app Windows Imaging Acquisition (WIA) platform • New Scan Runtime APIs are compatible with certified WIA 2.0 drivers WIA API (COM) These APIs can be used to scan from Windows Store and from Desktop apps Windows Store apps Desktop apps Hardware scanner devices (Stand-alone or MFP)
Windowshas you covered • Windows 8.1 supports the vast majority of scanners • available in the ecosystem today • More than 500 USB scanners are supported inbox with many more on Windows Update • All WS-Scan network scanners are supported by a class driver 🔐🔒💾 • WIA 2.0/WS-Scan support is required for Windows logoed scanners (since 2006) • Windows 8.1 supports more than 500 scanners inbox • Windows Update only provides WIA 2.0 drivers
Optional: Set scan settings 1 Enumerate scanners 2 Get scanner object How to enable scanning 3 Scan Optional: Preview
Windows.Devices.Scanners Object ImageScanner
Windows.Devices.Scanners Object Configuration Auto-configured Flatbed Feeder ImageScanner Auto-configured Flatbed Feeder
Windows.Devices.Scanners Object Configuration Property Auto-configured Flatbed Feeder Format ImageScanner
Windows.Devices.Scanners Object Configuration Property Auto-configured Flatbed Feeder Format Resolution Color mode Brightness Contrast Scan area ImageScanner
Windows.Devices.Scanners Object Configuration Property Auto-configured Flatbed Feeder Format Resolution Color mode Brightness Contrast Scan area Page orientation Duplex ImageScanner
Demos • Enumerate all connected scanners • Scan from auto-configured, flatbed, feeder scan sources • Override scan settings (scan area, resolution, format…) • Handle scan progress
1 Enumerate scanners 1 CreateWatcher(DeviceClass.ImageScanner) to enumerate using a DeviceWatcher (Windows.Devices.Enumeration) 2 Get scanner object 2 FromIdAsync(deviceId) for scanner ImageScannerobject Optional: Set scan settings How we enabled scanning Format, Resolution, Duplex… to set scan settings (per scan source) Optional: Preview ScanPreviewToStreamAsync() to scan file to stream 3 Scan 3 ScanFilesToFolderAsync() to scan file to folder
📎 👤share 👤 archive 👤 modify 👤 extract attachment protection improvement intelligence 🛅 ✎ ✎
The new Scan Runtime APIs make it easy to capture physical documents and images digitallyin a way that makes sense for your app
Resources • MSDN resources • API documentation • Search for “Windows.Devices.Scanners” • Scan Runtime API Samples • Auto-Configured scan feature • http://msdn.microsoft.com/en-us/library/windows/hardware/ff539393(v=vs.85).aspx • Contact us through WIAinfo@Microsoft.com • Ask us WIA driver or API questions
Required Slide *delete this box when your slide is finalized Your MS Tag will be inserted here during the final scrub. Evaluate this session • Scan this QR codeto evaluate this session and be automatically entered in a drawing to win a prize!