ImageScanner ImageScanner ImageScanner ImageScanner ImageScanner Class

Definition

Represents the properties of images to scan.

public : sealed class ImageScanner
struct winrt::Windows::Devices::Scanners::ImageScanner
public sealed class ImageScanner
Public NotInheritable Class ImageScanner
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Devices.Scanners.ScannerDeviceContract (introduced v1)

Properties

AutoConfiguration AutoConfiguration AutoConfiguration AutoConfiguration AutoConfiguration

Gets 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 DefaultScanSource DefaultScanSource DefaultScanSource DefaultScanSource

Gets the default scan source chosen for this scanner device.

DeviceId DeviceId DeviceId DeviceId DeviceId

Gets the PnP device identifier of this scanner device.

FeederConfiguration FeederConfiguration FeederConfiguration FeederConfiguration FeederConfiguration

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

FlatbedConfiguration FlatbedConfiguration FlatbedConfiguration FlatbedConfiguration FlatbedConfiguration

Gets and sets the scan settings of the Flatbed scan unit, like scan resolution and color mode.

Methods

FromIdAsync(String) FromIdAsync(String) FromIdAsync(String) FromIdAsync(String) FromIdAsync(String)

Creates an instance of a ImageScanner object based on a scanners device information ID. This method is required for broker device enumeration.

GetDeviceSelector() GetDeviceSelector() GetDeviceSelector() GetDeviceSelector() GetDeviceSelector()

Returns the class selection string that apps can use to enumerate scanner devices. This method is required for the brokered device enumeration.

IsPreviewSupported(ImageScannerScanSource) IsPreviewSupported(ImageScannerScanSource) IsPreviewSupported(ImageScannerScanSource) IsPreviewSupported(ImageScannerScanSource) IsPreviewSupported(ImageScannerScanSource)

Determines if the specified scan source supports scan preview.

IsScanSourceSupported(ImageScannerScanSource) IsScanSourceSupported(ImageScannerScanSource) IsScanSourceSupported(ImageScannerScanSource) IsScanSourceSupported(ImageScannerScanSource) IsScanSourceSupported(ImageScannerScanSource)

Determines if the specified scan source is available on the scanner.

ScanFilesToFolderAsync(ImageScannerScanSource, StorageFolder) ScanFilesToFolderAsync(ImageScannerScanSource, StorageFolder) ScanFilesToFolderAsync(ImageScannerScanSource, StorageFolder) ScanFilesToFolderAsync(ImageScannerScanSource, StorageFolder) ScanFilesToFolderAsync(ImageScannerScanSource, StorageFolder)

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(ImageScannerScanSource, IRandomAccessStream) ScanPreviewToStreamAsync(ImageScannerScanSource, IRandomAccessStream) ScanPreviewToStreamAsync(ImageScannerScanSource, IRandomAccessStream) ScanPreviewToStreamAsync(ImageScannerScanSource, IRandomAccessStream) ScanPreviewToStreamAsync(ImageScannerScanSource, IRandomAccessStream)

Scans one image from the specified scan source and applies the lowest scan resolution with the selected image file format.

See also