Accusoft.ImagXpressSdk Namespace > Processor Class : DocumentDeskew Method |
'Declaration Public Sub DocumentDeskew( _ ByVal MinimumAngle As Double, _ ByVal MinimumConfidence As Short, _ ByVal PadColor As Color, _ ByVal MaintainOriginalSize As Boolean, _ ByVal Quality As Short _ )
'Usage Dim instance As Processor Dim MinimumAngle As Double Dim MinimumConfidence As Short Dim PadColor As Color Dim MaintainOriginalSize As Boolean Dim Quality As Short instance.DocumentDeskew(MinimumAngle, MinimumConfidence, PadColor, MaintainOriginalSize, Quality)
public void DocumentDeskew( double MinimumAngle, short MinimumConfidence, Color PadColor, bool MaintainOriginalSize, short Quality )
public: void DocumentDeskew( double MinimumAngle, short MinimumConfidence, Color PadColor, bool MaintainOriginalSize, short Quality )
public: void DocumentDeskew( double MinimumAngle, short MinimumConfidence, Color PadColor, bool MaintainOriginalSize, short Quality )
Deskew is the process of straightening an image by examining it and determining the appropriate amount of rotation needed for correct alignment.
The detection process focuses on the content of the image, such as text and drawings, rather than the border. Deskew adjusts along the vertical and horizontal axes, optimizing each to provide the best image.
If no image is present, an error is indicated. ImagXpress validates the input, detects the skew, corrects the skew (if necessary) and returns results from the process.
This method is only corrected if the detection confidence is greater than or equal to the MinimumConfidence input and the skew angle is greater than the MinimumAngle input.
If the skew is corrected and MaintainOriginalSize is False, then the previous current image is released and a new DIB is created to hold the new current image. No error is returned if the previous current image could not be released. If the operation fails, the current image is unchanged.
Note: Available in Professional edition.