Accusoft.ImagXpress13.Net
DocumentDeskew Method




A double value which represents the minimum angle, in degrees, to deskew. This allows you to keep images with small amounts of skew untouched, potentially increasing performance in batch operations where some skew is acceptable. Angles less than or equal to this amount will not be corrected. This value should be floating point number from 0 to 5. A typical value is 0.2.
An integer value which represents the minimum detection confidence required before correction will proceed. This value should be an integer from 0 to 100. A typical value is 50.
A System.Drawing.Color value for the padding. Valid values are only Color.Black and Color.White. A typical value is Color.White.
A boolean value which is true to maintain the original size. Otherwise, false should be used. A typical value is false.
An integer value which indicates the amount of effort to expend analyzing the image to determine the correct skew. Set to a high value to ensure the most accurate possible result and to a low value for fastest operation. This value should be an integer from 1 to 100. A typical value is 80.
Automatically detects and removes skew from current 1-bit depth images.
Syntax
'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
) 

Parameters

MinimumAngle
A double value which represents the minimum angle, in degrees, to deskew. This allows you to keep images with small amounts of skew untouched, potentially increasing performance in batch operations where some skew is acceptable. Angles less than or equal to this amount will not be corrected. This value should be floating point number from 0 to 5. A typical value is 0.2.
MinimumConfidence
An integer value which represents the minimum detection confidence required before correction will proceed. This value should be an integer from 0 to 100. A typical value is 50.
PadColor
A System.Drawing.Color value for the padding. Valid values are only Color.Black and Color.White. A typical value is Color.White.
MaintainOriginalSize
A boolean value which is true to maintain the original size. Otherwise, false should be used. A typical value is false.
Quality
An integer value which indicates the amount of effort to expend analyzing the image to determine the correct skew. Set to a high value to ensure the most accurate possible result and to a low value for fastest operation. This value should be an integer from 1 to 100. A typical value is 80.
Remarks

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.

See Also

Reference

Processor Class
Processor Members

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback