GetImageBitDepth()

Description

Returns the pixel bit depth of the selected image.

Syntax

.GetImageBitDepth(sImageIndex);

Parameters

<short> sImageIndex: specifies the index of image in buffer. The index is 0-based.

Return value

<short>

If Dynamic Web TWAIN fails to get the pixel bit depth of the image. -1 is returned.

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