DTWAIN_EnumLightSources

Top  Previous  Next

The DTWAIN_EnumLightSources function returns the available sources of light that the TWAIN driver can manage.

 

DTWAIN_BOOL DTWAIN_EnumLightSources (

DTWAIN_SOURCE

Source,

LPDTWAIN_ARRAY

lpLightSources );

 

Parameters

Source

Specifies an open TWAIN Source.

 

lpLightSources

A pointer to a DTWAIN_ARRAY that on return will be filled with the available light sources that are supported.

 

Return Values

If supported, TRUE is returned.  Otherwise FALSE is returned.

 

Comments

The DTWAIN_EnumLightSources function takes the open Source Source, and returns to the DTWAIN_ARRAY pointed to by lpLightSources a list of the supported light sources.  The light source will represent the color of the lamp used to acquire an image.  A list of the possible values stored in the DTWAIN_ARRAY are found in Light Source Constants.  The returned DTWAIN_ARRAY is of type DTWAIN_ARRAYLONG.

 

TWAIN State Transitions

The source must be opened in State 4

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

DTWAIN Source Selection Function

 

See Also

Films, Transparenies, Light Sources