ImageScannerAutoConfiguration ImageScannerAutoConfiguration ImageScannerAutoConfiguration ImageScannerAutoConfiguration Class

Definition

Represents the auto-configured scan source of the scanner.

public : sealed class ImageScannerAutoConfiguration : IImageScannerFormatConfigurationpublic sealed class ImageScannerAutoConfiguration : IImageScannerFormatConfigurationPublic NotInheritable Class ImageScannerAutoConfiguration Implements IImageScannerFormatConfiguration// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Devices.Scanners.ScannerDeviceContract (introduced v1)

Properties

DefaultFormat DefaultFormat DefaultFormat DefaultFormat

The default file format for the scan source at the beginning of a new scan session.

public : ImageScannerFormat DefaultFormat { get; }public ImageScannerFormat DefaultFormat { get; }Public ReadOnly Property DefaultFormat As ImageScannerFormat// You can use this property in JavaScript.

Remarks

All WIA scanner devices support the Windows Device Independent Bitmap (DIB) format.

By default, these values in this order will be selected based on the file formats the device supports, from the smallest file size (in bytes) to the largest size:

    1. Jpeg
    1. Png
    1. Bitmap

Format Format Format Format

Gets or sets the current file transfer format for image data acquisition from the device to the client app.

public : ImageScannerFormat Format { get; set; }public ImageScannerFormat Format { get; set; }Public ReadWrite Property Format As ImageScannerFormat// You can use this property in JavaScript.

Methods

IsFormatSupported(ImageScannerFormat) IsFormatSupported(ImageScannerFormat) IsFormatSupported(ImageScannerFormat) IsFormatSupported(ImageScannerFormat)

Determines if the input scanner supports the specified file format.

public : PlatForm::Boolean IsFormatSupported(ImageScannerFormat value)public bool IsFormatSupported(ImageScannerFormat value)Public Function IsFormatSupported(value As ImageScannerFormat) As bool// You can use this method in JavaScript.
Parameters
Returns
PlatForm::Boolean bool bool bool

True if the specified file type is supported; otherwise False.