Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / TwainSetAutomaticRotation Method
True to enable automatic rotation, else False.





In This Topic
    TwainSetAutomaticRotation Method (GdPictureImaging)
    In This Topic
    If this option is available on opened source, try to enable or disable the automatic rotation of image capability.
    Syntax
    'Declaration
     
    
    Public Function TwainSetAutomaticRotation( _
       ByVal AutoRotate As Boolean _
    ) As Boolean
    public bool TwainSetAutomaticRotation( 
       bool AutoRotate
    )
    public function TwainSetAutomaticRotation( 
        AutoRotate: Boolean
    ): Boolean; 
    public function TwainSetAutomaticRotation( 
       AutoRotate : boolean
    ) : boolean;
    public: bool TwainSetAutomaticRotation( 
       bool AutoRotate
    ) 
    public:
    bool TwainSetAutomaticRotation( 
       bool AutoRotate
    ) 

    Parameters

    AutoRotate
    True to enable automatic rotation, else False.

    Return Value

    TRUE if successful, FALSE otherwise -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
    Remarks
    Before using this method check that the TWAIN state is TWAIN_SOURCE_OPEN (4) To get the TWAIN state, use the TwainGetState() method. 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.
    See Also