Click or drag to resize

ImageFileDeskew Method

This method de-skews a page by an amount given by the Slope parameter.

Namespace:  Kofax.OmniPageCSDK.IproPlus
Assembly:  Kofax.OmniPageCSDK.IproPlus (in Kofax.OmniPageCSDK.IproPlus.dll) Version: 1.0.0.0
Syntax
public void Deskew(
	int Slope,
	[OptionalAttribute] int Page
)

Parameters

Slope
Type: SystemInt32
Page (Optional)
Type: SystemInt32
Remarks

This parameter is the number of pixels of vertical ascent for each 1000 horizontal pixels. In other words, it is the Tangent of the skew angle multiplied by 1000. The Slope parameter can be between -577 and 577. If the optional Page Long parameter is unspecified or -1 the first page is processed. Otherwise, the page specified by the Page index parameter is processed.

This method can only be used with multi-page image TIFF files. A further requirement is that the pages in the multi-page TIFF file must be stored in one-strip format and the StripBytesCount TIFF tag must exist in the page header. TIFF image files created by the Capture SDK fulfill this requirement.

See Also