HolePunchRemove method (Main Control)
Visual Basic
Example
Visual
C++ 4.0 example
Syntax short HolePunchRemove (long uFlags, long iMinHoleCount, long iMaxHoleCount, long iMinHoleWidth, long iMinHoleHeight, long iMaxHoleWidth, long iMaxHoleHeight, long iLocation);
Overview: Refer to Cleaning - up 1-Bit Images
Remarks
(Document/Medical) This method detects and removes hole punches, common in scanned documents.
This method works only on 1-bit black and white images.
Hole punch configurations may consist of 2 or more holes.
If a region is selected, only the selected region will be changed by this method. If no region is selected, the whole image will be processed.
The behavior of this method can be modified using the HolePunchRemoveEvent event.
This method triggers both the HolePunchRemoveEvent event and the ProgressStatus event.
See Also
Elements: HolePunchRemoveEvent event