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

Asks to the opened source to rotate the scanned image data prior to transfer.

C#
public Boolean TwainSetRotation(
    int Rotation
);
Visual Basic
Public Function TwainSetRotation(
    ByVal Rotation As Integer
) As Boolean
Parameters
Parameters 
Description 
Rotation 
The angle of rotation in degrees.  
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.