BitDepth

Description

Returns or sets the pixel bit depths for the current value of PixelType property.

Data type

<short>

Syntax

.BitDepth = ...;

Remarks

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

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

BitDepth should be set based on the current PixelType.
For example, you can set 8 for 'TWPT_GRAY'(1) or 'TWPT_PALLETE'(3) but not for 'TWPT_BW'(0) or 'TWPT_RGB'(2).

See also

PixelType