Description This method will detect the angle of skewing of a scanned image and rotate the image to a precise position without handling black border. The method works for only monochrome, 8 and 24 bit per pixel images. The most common case is that when the paper is white and the text is black on it. The rare case is when the paper is black and the text is white on it.
Syntax RetVal = [BIDocImg.]DeskewDIBWithoutBlackBorder hDIB bWhiteBackground bShowProgress bFillBackground
Returns RetVal LONGLONG The handle of the new, deskewed DIB or NULL if an error occurred.
Remarks hDib LONGLONG Handle of the image to deskew.
bWhiteBackground Boolean TRUE, if the paper is white, and the text is black on it. FALSE, if the paper is black, and the text is white on it.
bShowProgress Boolean If TRUE, a progress dialog will appear during deskweing.
bFillBackground Boolean If TRUE, the method will fill the image background after rotate.
If bWhiteBackground is TRUE, the color of filling will be white.
See Also CropToEdges Method, DetectSkewAngle Method