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

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.

C#
public Boolean TwainSetOrientation(
    TwainOrientation Orientation
);
Visual Basic
Public Function TwainSetOrientation(
    ByVal Orientation As TwainOrientation
) As Boolean
Parameters
Parameters 
Description 
Orientation 
The image orientation mode. A member of the TwainOrientation enumeration. 
Returns

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

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