CorrectSkew Method of the ImageDocument Object
This method corrects the image skew. Skew can be corrected only for angles not greater than 20 degrees.
Important! All blocks must be removed from page layout before this method call. Call the ILayoutBlocks::DeleteAll method for each of the ILayout::Blocks, ILayout::BlackSeparators, ILayout::VisualBlocks collections of the corresponding layout.
Syntax
C++
HRESULT CorrectSkew( int CorrectSkewFlags );
C#
void CorrectSkew( int CorrectSkewFlags );
Visual Basic .NET
Sub CorrectSkew(CorrectSkewFlags As Integer)
Parameters
- CorrectSkewFlags
- [in] The variable may contain any combination of the CorrectSkewModeEnum constants. In the case of a combination of several flags, the following order is used: skew correction by squares, skew correction by lines, skew correction by text lines.
Return values
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.
Remarks
You can also correct image skew when opening images by using the CorrectSkewMode property of the PrepareImageMode object. In this case, skew will be corrected during image preprocessing.
See also
9/17/2024 3:14:41 PM