DTWAIN_SetOrientation

Top  Previous  Next

The DTWAIN_SetOrientation function sets the current orientation when acquiring pages.

 

DTWAIN_BOOL DTWAIN_SetOrientation (

DTWAIN_SOURCE

Source,

LONG

Orientation,

DTWAIN_BOOL

bSetCurrent );

 

Parameters

Source

An open TWAIN Source.

 

Printer

The orientation to set

 

bSetCurrent

Determines whether to set the current orientation or use the default orientation.

 

Return Values

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

 

Comments

The DTWAIN_SetOrientation function sets the current orientation for the Source Source when acquiring pages.

 

The Orientation is the orientation to set.  If bSetCurrent is TRUE, the orientation is set to the value specified by Orientation.  If bSetCurrent is FALSE, the default orientation is set, and the Orientation argument is ignored.  The value of Orientation can be any one of the Orientation Constants.

 

The TWAIN Source must support setting orientation (see DTWAIN_IsOrientationSupported)

 

 

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 Orientation