Smooth event (ILEADRasterProcess)

Visual Basic Example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

void Smooth (long nBumpOrNick, long nStartRow, long nStartCol, long nLength, long uHorV);

Overview

Refer to Cleaning - up 1-Bit Images

Remarks

(Document/Medical) This event is triggered for each bump and nick found by the Smooth method , if the EnableDocCleanEvents property has been set to TRUE before calling the Smooth method. Set the DocCleanSuccess property to SUCCESS_REMOVE to have the bump removed or the nick filled. Set the DocCleanSuccess property to SUCCESS_NOREMOVE to leave the bump or nick unchanged. Set the DocCleanSuccess property to 0 to abort. If the uFlags parameter of the Smooth method is set to SMOOTH_IMAGE_UNCHANGED | SMOOTH_SINGLE_REGION, then the value of the DocCleanSuccess property affects only the internal single region.

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:

Smooth method , EnableDocCleanEvents property

Topics:

Raster Images: Cleaning - up 1-Bit Images