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
| 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.
The file type.
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:
- Jpeg
- Png
- 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.
The file type.
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.
The file type.
True if the specified file type is supported; otherwise False.