ImageFileDetectSkew Method
|
This method attempts to detect the orientation and the slope of a page.
Namespace:
Kofax.OmniPageCSDK.IproPlusAssembly:
Kofax.OmniPageCSDK.IproPlus (in Kofax.OmniPageCSDK.IproPlus.dll) Version: 1.0.0.0
Syntaxpublic IMG_ROTATE DetectSkew(
out int Slope,
[OptionalAttribute] int Page
)
Public Function DetectSkew (
<OutAttribute> ByRef Slope As Integer,
<OptionalAttribute> Page As Integer
) As IMG_ROTATE
public:
IMG_ROTATE DetectSkew(
[OutAttribute] int% Slope,
[OptionalAttribute] [InAttribute] int Page
)
Parameters
- Slope
- Type: SystemInt32
- Page (Optional)
- Type: SystemInt32
Return Value
Type:
IMG_ROTATE
Remarks
The Slope is an output parameter that stores the skew of the page. The method returns the orientation of the page. It can be ROT_NO, ROT_RIGHT, ROT_DOWN or ROT_LEFT.
To learn more about these values, see also the IMG_ROTATE Enumeration topic. To align the page to the proper position, use the returned values in conjunction with
the Rotate and Deskew methods. If the Page optional Long parameter is unspecified or (-1),
the first page is processed. Otherwise, the page defined by the Page index parameter is transformed.
See Also