DTWAIN_SetBrightnessString

DTWAIN_SetBrightnessStringA

DTWAIN_SetBrightnessStringW

Top  Previous  Next

The DTWAIN_SetBrightnessString function sets the current brightness value for the Source.

 

DTWAIN_BOOL DTWAIN_SetBrightnessString (

DTWAIN_SOURCE

Source,

LPCTSTR

Brightness );

 

Parameters

Source

An open TWAIN Source.

 

Brightness

The brightness value to set the Source.

 

Return Values

TRUE if successful, FALSE otherwise.  If the function returns FALSE, call DTWAIN_GetLastError() to get extended information.

 

Character specific versions

ANSI version:

DTWAIN_SetBrightnessStringA

Unicode version:

DTWAIN_SetBrightnessStringW


Comments

The DTWAIN_SetBrightnessString function works exactly the same way as DTWAIN_SetBrightness, with the exception of the LPCTSTR parameter, which is a string that denotes the value to use.  

 

For example:

DTWAIN_SetBrightnessString( Source, "1000.0")

 

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 Level