TwainSetAutomaticRotation Method

See Also     Examples     Applies To

If this option is available on opened source, try to enable or disable the automatic rotation of image capability.

Syntax

object.TwainSetAutomaticRotation (bAutoRotate)

The TwainSetAutomaticRotation syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
bAutoRotate Required. Boolean. True to enable automatic rotation, else False.

Returns

Boolean. TRUE if successful, FALSE otherwise -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() functions for diagnosing the error.

Remarks

Before using this function check that the TWAIN state is TWAIN_SOURCE_OPEN (4)
To get the TWAIN state, use the TwainGetState() function.
There are no criteria for how this automatic rotation is determined. A Source may use a field of text, or some distinguishing non-text field, such as a barcode or a logo, or it may rely on form recognition to help rotate the document.

Category

TWAIN Functions





© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.