Skip to main content
ImageScanner class

Applies to Windows only

Represents the properties of images to scan.

Syntax


var imageScanner = Windows.Devices.Scanners.ImageScanner;

public sealed class ImageScanner

Public NotInheritable Class ImageScanner

public ref class ImageScanner sealed 

Attributes

[ DualApiPartition()]
[ MarshalingBehavior(Agile)]
[ Threading(Both)]
[ Version(0x06030000)]

Members

The ImageScanner class has these types of members:

Methods

The ImageScanner class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
FromIdAsync Creates an instance of a ImageScanner object based on a scanners device information ID. This method is required for broker device enumeration.
GetDeviceSelector Returns the class selection string that apps can use to enumerate scanner devices. This method is required for the brokered device enumeration.
IsPreviewSupported Determines if the specified scan source supports scan preview.
IsScanSourceSupported Determines if the specified scan source is available on the scanner.
ScanFilesToFolderAsync Starts a scan job with the specified scan source and writes one or multiple images to one multi-page file like TIFF, XPS, and PDF; or one or multiple single-page files like DIB, PNG, JPG, and TIFF to the specified folder location. Returns the progress of the scan.
ScanPreviewToStreamAsync Scans one image from the specified scan source and applies the lowest scan resolution with the selected image file format.

 

Properties

The ImageScanner class has these properties.

PropertyAccess typeDescription

AutoConfiguration

Read-onlyGets and sets the scan settings of the auto-configured scan unit, like the file format, including compression to deliver the scanned data in. This property is ignored if the scanner is not capable of auto-configuration.

DefaultScanSource

Read-onlyGets the default scan source chosen for this scanner device.

DeviceId

Read-onlyGets the PnP device identifier of this scanner device.

FeederConfiguration

Read-onlyGets or sets the scan settings of the Feeder scan unit, like page size, orientation, and scan resolution.

FlatbedConfiguration

Read-onlyGets and sets the scan settings of the Flatbed scan unit, like scan resolution and color mode.

 

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

None supported

Namespace

Windows.Devices.Scanners
Windows::Devices::Scanners [C++]

Metadata

Windows.winmd

See also

Object
Scan Sample