DTWAIN_GetBitDepthEx

Top  Previous  Next

The DTWAIN_GetBitDepthEx function gets the current number of bits per pixel for the next acquired images.

 

LONG DTWAIN_GetBitDepthEx (

DTWAIN_SOURCE

Source,

DTWAIN_BOOL

bGetCurrent );

 

Parameters

Source

An open TWAIN Source


bGetCurrent

Determines whether to get the current bit depth or the default bit depth

 

Return Values

If successful, the bits-per-pixel for the next acquired image is returned.  On failure, -1 is returned.  Call DTWAIN_GetLastError() to get extended information.

 

Comments

The DTWAIN_GetBitDepthEx function performs the same functionality as DTWAIN_GetBitDepth, with the difference being that the bit depth is returned as a LONG instead of the user providing a pointer to a LONG as a parameter.


 

TWAIN State Transitions

The Source must be in State 4 or higher

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

DTWAIN Source Selection Function

 

 

See Also

Setting Pixel and Bit Depth