Despeckle

Obsolete transaction. Replaced by: DespeckleEx

 

The Despeckle transaction cleans up the active raster image in the specified document by removing clusters or chains of pixels which contain speckleSize or fewer pixels. The result either is placed in a new window or overwrites the original, depending on the overwrite raster flag.

Type XTYP_EXECUTE or XTYP_REQUEST

Syntax [Despeckle(docwinID, layerID, speckleSize)]

Parameters

Data type

Values

Meaning

docwinID

DWORD

0 | docwinID

active | specific

layerID

DWORD

0

not used. The active raster layer is despeckled.

speckleSize

WORD

1 to 30, inclusive

maximum size of cluster

Reply

Data type

Values

Meaning

newDocwinID

WORD

0

docwinID

fail

identifier of the new document window

Remarks

If the overwrite raster flag is set to on, newDocwinID is the original docwinID.

Release information

Added in Release 3.50.

Obsoleted in Release 4.30.