building windows apps that use image scanners

26

Upload: samara

Post on 25-Feb-2016

41 views

Category:

Documents


0 download

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 Presentation

TRANSCRIPT

Page 1: Building Windows apps that use  image scanners
Page 2: Building Windows apps that use  image scanners

Building Windows apps that use image scanners

Monica CzarnyWindows Program Manager3-025

Page 3: Building Windows apps that use  image scanners

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

Page 4: Building Windows apps that use  image scanners

Users want experiences, information, intelligence

Digital world

share 📎

archive modify

✎ extract

Page 5: Building Windows apps that use  image scanners

Digital world

Things in the physical world are being left behind

checks 📃 legal contracts store receipts photos medical records

Page 6: Building Windows apps that use  image scanners
Page 7: Building Windows apps that use  image scanners

There are more scanners out there than you may think

66% of printers connected

to Windows are also scanners

Page 8: Building Windows apps that use  image scanners

JPEG, OXPS

,

Why is content left behind?

Windows 8.1

Page 9: Building Windows apps that use  image scanners

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

Page 10: Building Windows apps that use  image scanners

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

Page 11: Building Windows apps that use  image scanners

How to enable scanning

Enumerate scanners1Get scanner object2

Scan3 Optional: Preview

Optional: Set scan settings

Page 12: Building Windows apps that use  image scanners

ImageScanner

Object

Windows.Devices.Scanners

Page 13: Building Windows apps that use  image scanners

Auto-configuredFlatbedFeeder

Windows.Devices.Scanners

Configuration

ImageScanner

Object

Page 14: Building Windows apps that use  image scanners

Auto-configuredFlatbedFeeder

FormatImageScanner

Windows.Devices.Scanners

ConfigurationObject Property

Page 15: Building Windows apps that use  image scanners

Auto-configuredFlatbedFeeder

Windows.Devices.Scanners

FormatResolutionColor modeBrightnessContrast

Scan area

ConfigurationObject Property

ImageScanner

Page 16: Building Windows apps that use  image scanners

FormatResolutionColor modeBrightnessContrast

Scan areaPage orientation

Duplex

Auto-configuredFlatbedFeeder

ImageScanner

Windows.Devices.Scanners

ConfigurationObject Property

Page 17: Building Windows apps that use  image scanners

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

Page 18: Building Windows apps that use  image scanners

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

Page 19: Building Windows apps that use  image scanners
Page 20: Building Windows apps that use  image scanners
Page 21: Building Windows apps that use  image scanners

attachment protection improvement intelligence

���

👤 share 👤 archive👤 modify👤 extract

Page 22: Building Windows apps that use  image scanners

The new Scan Runtime APIs make it easy to capture physical documents and images

digitally in a way that makes sense for your app

Page 23: Building Windows apps that use  image scanners

What are you going to ld/?

Page 24: Building Windows apps that use  image scanners

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

Page 25: Building Windows apps that use  image scanners

Evaluate this session

Scan this QR code to evaluate this session and be automatically entered in a drawing to win a prize!

Page 26: Building Windows apps that use  image scanners

© 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.