Deskew method (ILEADRasterProcess)
short Deskew (ILEADRaster *pRaster, OLE_COLOR crFill, long lFlags); | |
Overview |
Refer to Examining and Altering Bitmaps. |
Remarks
(Document/Medical only) Rotates the bitmap to straighten it. This method typically is used to automatically straighten scanned images.
The calculated rotation is limited to 10 degrees in either direction. This method is intended for images, such as scanned documents, that are mainly horizontal lines of text. The results are unpredictable with other types of images.
This method supports 12 and 16-bit grayscale images and 48 and 64-bit color images. Support for 12 and 16-bit grayscale images and 48 and 64-bit color images is available only in the Document/Medical toolkits. If the image is 12 and 16-bit grayscale and 48 and 64-bit color, the method will not return an error.
Read the DeskewAngle property after calling this method to get the angle that was applied.
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