GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / TwainSetAutomaticDeskew Method
True to enable automatic deskew, else False.





In This Topic
TwainSetAutomaticDeskew Method (GdPictureImaging)
In This Topic
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.
Syntax
'Declaration
 
Public Function TwainSetAutomaticDeskew( _
   ByVal AutoDeskew As Boolean _
) As Boolean
public bool TwainSetAutomaticDeskew( 
   bool AutoDeskew
)
public function TwainSetAutomaticDeskew( 
    AutoDeskew: Boolean
): Boolean; 
public function TwainSetAutomaticDeskew( 
   AutoDeskew : boolean
) : boolean;
public: bool TwainSetAutomaticDeskew( 
   bool AutoDeskew
) 
public:
bool TwainSetAutomaticDeskew( 
   bool AutoDeskew
) 

Parameters

AutoDeskew
True to enable automatic deskew, else False.

Return Value

TRUE if successful, 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