AntiAlias method (ILEADRasterProcess)

Visual Basic example

Visual C++ 5.0 example

 

Syntax

short AntiAlias(ILEADRaster *pRaster, short iThreshold, short iDim, AntiAliasConstants Filter);

Overview

Refer to Correcting Colors.

Remarks

(Document only) Applies an anti-aliasing filter to the bitmap.

The best results for anti-aliasing text can be obtained with the filter ANTIALIAS_2.

The value of the iDim parameter determines the extent of the anti-aliasing.

The threshold range for 16, 48 and 64-bit bitmaps is from 0 to 65535 and for 12-bit bitmaps the threshold range is from 0 to 4095. Otherwise, it is from 0 to 255. The threshold is applied on channels separately.

This method also supports 12 and 16 - bit grayscale bitmaps and can process the whole image or a region of the image. Support for 12 and 16 - bit grayscale images is available only in the Document/Medical toolkits.

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:

AddNoise method, Average method

Topics:

Raster Images: Filtering Images