Click or drag to resize

ImageFileDetectSkew Method

This method attempts to detect the orientation and the slope of a page.

Namespace:  Kofax.OmniPageCSDK.IproPlus
Assembly:  Kofax.OmniPageCSDK.IproPlus (in Kofax.OmniPageCSDK.IproPlus.dll) Version: 1.0.0.0
Syntax
public IMG_ROTATE DetectSkew(
	out int Slope,
	[OptionalAttribute] 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