DTWAIN_GetContrastString

Top  Previous  Next

The DTWAIN_GetContrastString function sets the current contrast value for the Source.

 

DTWAIN_BOOL DTWAIN_GetContrastString (

DTWAIN_SOURCE

Source,

LPTSTR

lpContrast );

 

Parameters

Source

An open TWAIN Source.

 

lpContrast

String buffer.  On return, this is filled in with the current contrast.

 

Return Values

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

 

Comments

The DTWAIN_GetContrastString function works exactly the same way as DTWAIN_GetContrast, with the exception of the lpContrast parameter, which is a string buffer that will be filled on return with the contrast value.  See DTWAIN_GetContrast function for more details.

 

The LPTSTR arguments must point to a buffer large enough to hold the necessary string information.  The string information will not exceed 255 characters.

 

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 Contrast Level