DTWAIN_EnumBrightnessValuesEx

Top  Previous  Next

The DTWAIN_EnumBrightnessValuesEx function gets all of the possible brightness settings available for the current Source.


DTWAIN_ARRAY DTWAIN_EnumBrightnessValuesEx (

DTWAIN_SOURCE

Source,

DTWAIN_BOOL

bExpandRange );

 

Parameters

Source

An open TWAIN Source

 

bExpandRange

Flag that determines whether the values will be expanded if the Source stores them in a TW_RANGE.

 


Return Values

If successful, a DTWAIN_ARRAY that will store the that will store the Source's brightness values.  NULL is returned on failure.  If the function fails, call DTWAIN_GetLastError() to get extended information.

 

Comments

The DTWAIN_EnumBrightnessValuesEx function has the same functionality as DTWAIN_EnumBrightnessValues, except that the DTWAIN_ARRAY is returned to the caller instead of the caller providing a pointer to a DTWAIN_ARRAY 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 / Getting Brightness Values