DTWAIN_EnumPixelTypes

Top  Previous  Next

The DTWAIN_EnumPixelTypes function gets all of the possible pixel types (color settings) that are available for a Source.

 

DTWAIN_BOOL DTWAIN_EnumPixelTypes (

DTWAIN_SOURCE

Source,

LPDTWAIN_ARRAY

lpPixelTypes );

 

Parameters

Source

An open TWAIN Source.

 

lpPixelTypes

Address of a DTWAIN_ARRAY that will store the pixel types

 

Return Values

The return value is TRUE if successful.  Otherwise FALSE is returned.

 

Comments

The DTWAIN_EnumPixelTypes function gets all of the pixel types, or color settings, supported by the Source The data type of the returned DTWAIN_ARRAY is ARRAYLONG.

 

DTWAIN Pixel Constants contains a list of the possible pixel types.

 

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