Smooth method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int Smooth (unsigned uProcessFlags, int nLength);

Delphi Syntax

Function Smooth (uProcessFlags: L_UINT32; nLength: L_INT32):L_INT;

Overview

Refer to Cleaning Up 1-Bit Images

Remarks

(Document/Medical)Smoothes the bumps and fills in the nicks of a 1-bit black and white image.

This method smoothes the text in scanned text documents.

The behavior of this method can be modified by using the OnSmooth event.

This method works only on 1-bit black and white images.

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.

This method triggers both the OnSmooth 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:

OnSmooth event

Topics:

Raster Images: Cleaning - up 1-Bit Images