TrimBlackBorder  Method

Description         This method will detect the black border of a scanned image and replace the black pixels with white pixels. The method works for only monochrome, 8 and 24 bit per pixel images.

Syntax                 RetVal = [BIDocImg.]TrimBlackBorder hDib

Returns               RetVal                    LONGLONG The handle of the new DIB or NULL if an error occurred.

Remarks             hDib                       LONGLONG Handle of the image.

See Also              DetectSkewAngle Method, DeskewDIB Method, SkewDIB Method