IImageScannerFormatConfiguration IImageScannerFormatConfiguration IImageScannerFormatConfiguration IImageScannerFormatConfiguration Interface

Definition

Configures the file format when a scanner input source transfers acquired image data to the app.

public : interface IImageScannerFormatConfigurationpublic interface IImageScannerFormatConfigurationPublic Interface IImageScannerFormatConfiguration// You can use this interface 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

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

Remarks

When a new scan session starts, this property is set to the default file format. See the DefaultFormat property on how this is done.

Methods

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

Determines whether the input scanner supports the specified file format or not.

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.