DTWAIN_SetRotationString

DTWAIN_SetRotationStringA

DTWAIN_SetRotationStringW

Top  Previous  Next

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

 

DTWAIN_BOOL DTWAIN_SetRotation (

DTWAIN_SOURCE

Source,

LPCTSTR

Rotation );

 

Parameters

Source

An open TWAIN Source.

 

Resolution

The rotation 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_SetRotationStringA

Unicode version:

DTWAIN_SetRotationStringW


Comments

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

 

For example:

DTWAIN_SetRotationString( Source, "30.0")

 

TWAIN State Transitions

The Source must be in State 4. or higher

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

DTWAIN Source Selection Function