#include "BIDocImg.H"
HDIB CALLBACK CleanImage( HDIB hDib,
int percent,
BOOL bSlow)
Description
The CleanImage method cleans the image specified by the hDib parameter. This function works only for monochrome and 8 bits per pixel grayscale images. If the bSlow parameter is TRUE, the CleanImage function scans every pixel of the image, if FALSE, only a certain number of pixels. The percent parameter is no less than 20 and not more than 100. This parameter shows the function how many adjacent pixels to examine around the current pixel.
Parameters
|
HDIB |
hDib |
Handle of the DIB. |
|
int |
percent |
20 <= percent <= 100 |
|
BOOL |
bSlow |
if TRUE, the Document Imaging SDK uses the slow cleaning method, otherwise the fast cleaning method is used. |
Return values
Handle of the DIB. NULL on error.
Requirements
Header : Declared in BIDocImg.h; include BIDocImg.h.
Library : Use BIDocImg.lib.
DLLs : BIDocImg.dll.
Code example
#include "BIDocImg.H"
…
BeginWaitCursor();
HDIB hDibNew = CleanImage(hDib, Percent, false);
//hDib is the HANDLE of the original DIB.
EndWaitCursor();
if (hDibNew != NULL)
…