DetectSkewAngleWithoutBBorder   Method

Description         This method will specify the angle of skewing of a scanned image. The method works for only monochrome, 8 and 24 bit per pixel images without black border. The most common case is that when the paper is white and the text is black on it. The rare case is that the paper is black and the text is white on it.

Syntax                 RetVal = [BIDocImg.]DetectSkewAngleWithoutBBorder  hDIB bWhiteBackground bShowProgress

Returns               RetVal                          Long          The angle of skewing or 0 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.

See Also              DeskewDIB Method