DTWAIN_EnableAutoDeskew

Top  Previous  Next

The DTWAIN_EnableAutoDeskew function determines whether the automatic deskew correction is turned on or off.

 

DTWAIN_BOOL DTWAIN_EnableAutoDeskew (

DTWAIN_SOURCE

Source

DTWAIN_BOOL

bEnable );

 

Parameters

Source

An open TWAIN Source.

 

bEnable

Determines whether to turn on or off the automatic deskewing function of the Twain device.

 

Return Values

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

 

Comments

The DTWAIN_EnableAutoDeskew function determines whether to use the Source's automatic deskewing function.  When an image is deskewed, it is rotated in such a way so that the document is as close to portrait or landscape as possible.  Only Twain devices that support auto-deskew are supported.  To discover whether a Twain device supports auto-deskew, call DTWAIN_IsAutoDeskewSupported.

 

If bEnable is TRUE, the automatic deskewing capabilities of the Source is used.  If bEnable is FALSE, the automatic deskewing is not used

 

TWAIN State Transitions

The Source must be in State 4 or higher

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

DTWAIN Source Selection Function

 

 

See Also

Automatic Deskewing / Border Detection Support