BitDepth

Description

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

Data type

<short>

Syntax

.BitDepth = ...;

Remarks

Currently this property is only valid in Windows & Mac.

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 generally set 8 for 'TWPT_GRAY'(1) or 'TWPT_PALLETE'(3) but not for 'TWPT_BW'(0) or 'TWPT_RGB'(2).

See also

PixelType

Is this page helpful?

Leave a Reply

Your email address will not be published.