You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Crop, Auto Deskew & Auto Border Removal > AutoDeskew Method > AutoDeskew Method (Integer, Single, Color)
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.AutoDeskew Method (Integer, Single, Color)

Tries to deskew a GdPicture image to about ± specified degrees. This function enables to specify the background color to use. 

Deskewing an image can help a lot to do OCR, OMR, barcode detection or just improve the readability of an image.

C#
public GdPictureStatus AutoDeskew(
    int ImageID, 
    Single MaxAngleOfResearch, 
    Color BackColor
);
Visual Basic
Public Function AutoDeskew(
    ByVal ImageID As Integer, 
    ByVal MaxAngleOfResearch As Single, 
    ByVal BackColor As Color
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
MaxAngleOfResearch 
Maximum angle of research. IE: set 10 to perform a skew research about ±10 degrees. A value lower that 15 are suggested.  
BackColor 
A Color Object. You can build a Color Object using the ARGB() function. Color to use to fill background.  
Returns

A member of the GdPictureStatus enumeration.

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