Description This method will detect the punch holes of a scanned image and fill the holes with white color. The method works for only monochrome, 8 and 24 bit per pixel images.
Syntax RetVal = [BIDocImg.]PunchHoleRemover hDib iStandard bShowProgress
Returns RetVal LONGLONG The handle of new DIB, or 0 if an error occurred.
Remarks hDib LONGLONG Handle of the image to remove punch holes.
iStandard Long This parameter describes which standard used to make punch holes. This can be one of the following:
tifpEU5mm = 0 European 5 mm
standard.
tifpUSA1_4Inch = -1 American 1/4 standard.
tifpUSA9_32Inch = -2 American 9/32 standard.
tifpUSA11_32Inch = -3 American 11/32 standard.
Positive integer value = The method will detect holes whit iStandard diameter. In this case the measure of the dimaeter is milimeter.
bShowProgress Boolean If TRUE, a progress dialog will appear during removing punch holes.
See Also