DeskewExt method (ILEADRasterProcess)

Visual Basic example

Visual C++ example

 

Syntax

HRESULT DeskewExt(ILEADRaster * pRaster, long lAngleRange, long lAngleResolution, OLE_COLOR crFill, long lFlags);

Overview

Refer to Examining and Altering Bitmaps.

Remarks

(Raster Pro and above only) Rotates the specified bitmap to straighten it. This method typically is used to automatically straighten scanned images.

Like Deskew, you can use this method to automatically straighten scanned documents. With this method, the Deskew method has been extended to increase the possible deskew angle (from 10 degrees to 45 degrees in either direction). In addition it adds the capability to forgo deskewing if the deskew angle is very small and to specify the resolution of the rotation step, and adds the capability to specify the type of interpolation to be performed while rotating.

If lFlags contains DSKW_NOPROCESS, the method will update DeskewExtAngle property with the deskew angle without rotating the image.

The calculated rotation is limited to 45 degrees in either direction. This method is intended for images, such as scanned documents, that are mainly horizontal lines of text. The results are less predictable with other types of images.

This method supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

DeskewExtAngle property, Despeckle method, WindowLevel method, ApplyTransformationParameters method, GetMarksCenterMass method, GetTransformationParameters method, IsRegistrationMark method, SearchRegMarks method, Deskew method.

Topics:

Raster Images: Doing Geometric Transformations.

 

Raster Images: Filtering Images