Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / TwainSetOrientation Method
The image orientation mode. A member of the TwainOrientation enumeration.





In This Topic
    TwainSetOrientation Method (GdPictureImaging)
    In This Topic
    Asks to the opened source to define which edge of the “paper” the image’s “top” is aligned with. This information is used to adjust the frames to match the scanning orientation of the paper.
    Syntax
    'Declaration
     
    
    Public Function TwainSetOrientation( _
       ByVal Orientation As TwainOrientation _
    ) As Boolean
    public bool TwainSetOrientation( 
       TwainOrientation Orientation
    )
    public function TwainSetOrientation( 
        Orientation: TwainOrientation
    ): Boolean; 
    public function TwainSetOrientation( 
       Orientation : TwainOrientation
    ) : boolean;
    public: bool TwainSetOrientation( 
       TwainOrientation Orientation
    ) 
    public:
    bool TwainSetOrientation( 
       TwainOrientation Orientation
    ) 

    Parameters

    Orientation
    The image orientation mode. A member of the TwainOrientation enumeration.

    Return Value

    TRUE if success, 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.
    See Also