ImageScannerFormat Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The type of files to scan to.
public enum class ImageScannerFormat
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.Scanners.ScannerDeviceContract, 65536)]
enum class ImageScannerFormat
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.Scanners.ScannerDeviceContract), 65536)]
public enum ImageScannerFormat
var value = Windows.Devices.Scanners.ImageScannerFormat.jpeg
Public Enum ImageScannerFormat
- Inheritance
-
ImageScannerFormat
- Attributes
Windows requirements
Device family |
Windows Desktop Extension SDK (introduced in 10.0.10240.0)
|
API contract |
Windows.Devices.Scanners.ScannerDeviceContract (introduced in v1.0)
|
Fields
Name | Value | Description |
---|---|---|
Jpeg | 0 | Exchangeable image file format/EXIF or JPEG file interchange format/JFIF Use these files only in color or grayscale modes (8 bits per channel/sample), with single page and compressed (lossy JPEG compression). |
Png | 1 | Portable Network Graphics (PNG) image file format This value supports any color mode, with single page and compressed (loseless PNG compression). |
DeviceIndependentBitmap | 2 | Windows Device Independent Bitmap (DIB) This value supports any color mode, with single page and uncompressed. This is the only format that is supported by all compatible WIA 2.0 scanner devices. |
Tiff | 3 | Uncompressed Tagged Image File Format (TIFF) compatible with the TIFF 6.0 specification, either single and/or multi-page These files can be in any color mode supported by this API, always uncompressed and either single page (if only one image has to be transferred) or multi-page (if multiple images have to be transferred and the device supports this multi-page file format). |
Xps | 4 | Microsoft XML Paper Specification (XPS) document file format These files can contain image data in any color mode supported by this API, compressed at the choice of the device, either single or multi-page. |
OpenXps | 5 | Open XML Paper Specification (OpenXPS) document file format These files can contain image data in any color mode supported by this API, compressed at the choice of the device, either single or multi-page. |
6 | Portable Document Format PDF/A (PDF/A is an ISO-standardized version of the Portable Document Format/PDF specialized for the digital preservation of electronic documents) document file format These files can contain image data in any color mode supported by this API, compressed at the choice of the device, either single or multi-page. |
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.
-
- Jpeg
-
- Png
-
- Bitmap