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

If this option is available on opened source, try to enable or disable the automatic deskew correction of an image. It may also affect the dimensions of the image.

C#
public Boolean TwainSetAutomaticDeskew(
    Boolean AutoDeskew
);
Visual Basic
Public Function TwainSetAutomaticDeskew(
    ByVal AutoDeskew As Boolean
) As Boolean
Parameters
Parameters 
Description 
AutoDeskew 
True to enable automatic deskew, 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.

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