Share via


ImageScannerColorMode Enum

Definition

Specifies the color modes for the scan source.

public enum class ImageScannerColorMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.Scanners.ScannerDeviceContract, 65536)]
enum class ImageScannerColorMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.Scanners.ScannerDeviceContract), 65536)]
public enum ImageScannerColorMode
var value = Windows.Devices.Scanners.ImageScannerColorMode.color
Public Enum ImageScannerColorMode
Inheritance
ImageScannerColorMode
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
Color 0

24-bit RGB color (3 channels at 8 bits per channel).

Grayscale 1

8 bit or 4 bit grayscale (1 channel at 8 or 4 bits per channel). If the device supports both 4 and 8 bit grayscale the DefaultColorMode property will use 8 bit.

Monochrome 2

1 bit bi-tonal, also called monochrome or ‘black and white’ (1 channel at 1 bit per channel).

AutoColor 3

The device automatically detects the right color mode based on the scan content. In this case the decision between color, grayscale and black and white for example relies on the device, and not the app.

Remarks

If the scanner device doesn't support any of these color modes, the current scan source will be considered unavailable and the app won’t be able to scan from there.

Applies to