PixelType

Description

Returns or sets the pixel type used for acquiring images.

Data type

EnumDWT_PixelType (short)

Syntax

.PixelType = ...;

Remarks

Allowed Values PixelType
EnumDWT_PixelType.TWPT_BW (0) BW
EnumDWT_PixelType.TWPT_GRAY (1) GRAY
EnumDWT_PixelType.TWPT_RGB (2) RGB
EnumDWT_PixelType.TWPT_PALLETE (3) PALETTE
EnumDWT_PixelType.TWPT_CMY (4) CMY
EnumDWT_PixelType.TWPT_CMYK (5) CMYK
EnumDWT_PixelType.TWPT_YUV (6) YUV
EnumDWT_PixelType.TWPT_YUVK (7) YUVK
EnumDWT_PixelType.TWPT_CIEXYZ (8) CIEXYZ
EnumDWT_PixelType.TWPT_LAB (9) LAB
EnumDWT_PixelType.TWPT_SRGB (10) SRGB
EnumDWT_PixelType.TWPT_SCRGB (11) SCRGB
EnumDWT_PixelType.TWPT_INFRARED (16) INFRARED

Set this property after OpenSource() and before AcquireImage().

The Data Source (scanner) might not support a certain pixeltype, check its user manual for more information.

When an error occurs, check ErrorCode or ErrorString for error information.

See also

PixelFlavor
OpenSource()