building windows apps that use image scanners
DESCRIPTION
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. - PowerPoint PPT PresentationTRANSCRIPT
Building Windows apps that use image scanners
Monica CzarnyWindows Program Manager3-025
1. Why incorporate scanning in your app?
2. Your app + scanner device compatibility
3. Simplicity of the new Scanner namespace
4. Demo: scanning from an app 5. Scan API code snippets
What we will cover today
Users want experiences, information, intelligence
Digital world
share 📎
archive modify
✎ extract
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
JPEG, OXPS
,
Why is content left behind?
Windows 8.1
Windows Imaging Acquisition (WIA) platform
Scan Runtime APIs
WIA API (COM)
Windows 8.1 Store app
Hardware scanner devices(Stand-alone or MFP)
Scan Runtime APIs built on top of WIA means that you can use any Windows logoed scanner
New Scan Runtime APIs are compatible with certified WIA 2.0 drivers
Windows Store appsDesktop apps
These APIs can be used to scan from Windows Store and from Desktop apps
Windows 8.1 Store app
Windows has you coveredWindows 8.1 supports the vast majority of scanners
available in the ecosystem today
All WS-Scan network
scanners are supported by a class
driver
More than 500 USB scanners
are supported inbox with many more
on Windows Update
How to enable scanning
Enumerate scanners1Get scanner object2
Scan3 Optional: Preview
Optional: Set scan settings
ImageScanner
Object
Windows.Devices.Scanners
Auto-configuredFlatbedFeeder
Windows.Devices.Scanners
Configuration
ImageScanner
Object
Auto-configuredFlatbedFeeder
FormatImageScanner
Windows.Devices.Scanners
ConfigurationObject Property
Auto-configuredFlatbedFeeder
Windows.Devices.Scanners
FormatResolutionColor modeBrightnessContrast
Scan area
ConfigurationObject Property
ImageScanner
FormatResolutionColor modeBrightnessContrast
Scan areaPage orientation
Duplex
Auto-configuredFlatbedFeeder
ImageScanner
Windows.Devices.Scanners
ConfigurationObject Property
1. Enumerate all connected scanners
2. Scan from auto-configured, flatbed, feeder scan sources
3. Override scan settings (scan area, resolution, format…)
4. Handle scan progress
Demos
How we enabled scanning
Enumerate scanners
Get scanner object
1
2 Optional: Set scan settings
Optional: PreviewScan3
CreateWatcher(DeviceClass.ImageScanner)
to enumerate using a DeviceWatcher (Windows.Devices.Enumeration)
Format, Resolution, Duplex… to set scan settings (per scan source)
FromIdAsync(deviceId)for scanner ImageScanner object
ScanPreviewToStreamAsync()to scan file to stream
ScanFilesToFolderAsync() to scan file to folder
1
2
3
attachment protection improvement intelligence
���
�
✎
✎
👤 share 👤 archive👤 modify👤 extract
The new Scan Runtime APIs make it easy to capture physical documents and images
digitally in a way that makes sense for your app
What are you going to ld/?
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 [email protected]• Ask us WIA driver or API questions
Evaluate this session
Scan this QR code to evaluate this session and be automatically entered in a drawing to win a prize!
© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.