AntiAlias method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int __fastcall AntiAlias(int iThreshold, int iDim, int iFilter);

Delphi Syntax

Function AntiAlias(iThreshold: Integer; iDim: Integer; iFilter: Integer): Integer;

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.

This method can process the whole image or a region of the image.

This method supports 12 and 16-bit grayscale images and 48 and 64-bit color images. Support for 12 and 16-bit grayscale images and 48 and 64-bit color images is available only in the Document/Medical toolkits.

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 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

Topics:

Raster Images: Filtering Images