DTWAIN_SetResolutionString

DTWAIN_SetResolutionStringA

DTWAIN_SetResolutionStringW

Top  Previous  Next

The DTWAIN_SetResolutionString function sets the current resolution value for the Source.

 

DTWAIN_BOOL DTWAIN_SetResolutionString (

DTWAIN_SOURCE

Source,

LPCTSTR

Resolution );

 

Parameters

Source

An open TWAIN Source.

 

Resolution

The resolution 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_SetResolutionStringA

Unicode version:

DTWAIN_SetResolutionStringW


Comments

The DTWAIN_SetResolutionString function works exactly the same way as DTWAIN_SetResolution, with the exception of the LPCTSTR parameter, which is a string that denote the value to use.  

 

For example:

DTWAIN_SetResolutionString( Source, "300.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 X-Y Resolution Values