You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > TWAIN Features > TwainSetAutomaticRotation Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.TwainSetAutomaticRotation Method

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

C#
public Boolean TwainSetAutomaticRotation(
    Boolean AutoRotate
);
Visual Basic
Public Function TwainSetAutomaticRotation(
    ByVal AutoRotate As Boolean
) As Boolean
Parameters
Parameters 
Description 
AutoRotate 
True to enable automatic rotation, else False.  
Returns

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

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.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.