HolePunchRemove method (Main Control)
Builder Syntax: |
int HolePunchRemove(unsigned uProcessFlags, int nMinHoleCount, int nMaxHoleCount, int nMinHoleWidth, int nMinHoleHeight, int nMaxHoleWidth, int nMaxHoleHeight, int nLocation); |
Delphi Syntax: |
Function HolePunchRemove(uProcessFlags: L_UINT32; nMinHoleCount:L_INT32; nMaxHoleCount :L_INT32; nMinHoleWidth:L_INT32; nMinHoleHeight :L_INT32; nMaxHoleWidth :L_INT32; nMaxHoleHeight :L_INT32; nLocation :L_INT32): L_INT; |
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 OnHolePunchRemove event.
This method triggers both the OnHolePunchRemove event and the OnStatus event.
This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.
See Also
Elements: |
|
Topics: |