BorderRemove method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax:

int BorderRemove(unsigned uProcessFlags, int uBorderToRemove, int nBorderPercent, int nWhiteNoiseLength, int nVariance);

Delphi Syntax:

function BorderRemove (uProcessFlags: L_UINT32; uBorderToRemove: L_UINT;nBorderPercent : L_INT32; nWhiteNoiseLength : L_INT32; nVariance: L_INT32): L_INT;

Overview

Refer to Cleaning Up 1-Bit Images

Remarks

(Document/Medical) Removes borders from 1-bit images. To "fine-tune" the performance of this method, try modifying the values for nWhiteNoiseLength, nBorderPercent and nVariance.

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

OnBorderRemove event

Topics:

Raster Images: Cleaning - up 1-Bit Images