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.
public GdPictureStatus AutoDeskew( int ImageID, Single MaxAngleOfResearch, Color BackColor );
Public Function AutoDeskew( ByVal ImageID As Integer, ByVal MaxAngleOfResearch As Single, ByVal BackColor As Color ) As GdPictureStatus
|
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. |
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.
|