#include "BIDocImg.H"
HANDLE CALLBACK PunchHoleRemover( HANDLE HDIB,
int iStandard,
BOOL bShowProgress,
HWND hParent)
Description
This function will detect the punch holes of a scanned image and fill the holes with white color. The function works for only monochrome, 8 and 24 bit per pixel images.
Parameters
|
HANDLE |
hDIB |
Handle of the image to remove punch holes. |
|
int |
iStandard |
This parameter describes which standard used to make punch holes. See Programming Notes. |
|
BOOL |
bShowProgress |
If TRUE, a progress dialog will appear during removing punch holes. |
|
HWND |
hParent |
Handler of the parent window. |
Return values
The handle of the new, DIB or NULL if an error occurred.
Programming notes
The function will not free the input DIB.
Available standards:
EU5MM - European 5mm standard
USA1_4INCH - American 1/4 inch standard
USA9_32INCH - American 9/32 inch standard
USA11_32INCH - American 11/32 inch standard
If iStandard parameter is a positive integer value, the function will detect holes with iStandard diameter. In this case the measure of the dimaeter is milimeter.
Requirements
Header : Declared in BIDocImg.h; include BIDocImg.h.
Library : Use BIDocImg.lib.
DLLs : BIDocImg.dll.