Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP imageantialias - Whether to Use the Antialias Feature

PHP imageantialias - Whether to Use the Antialias Feature

PHP Image ProcessingPHP Image Processing

imageantialias — Whether to use the antialias feature.

Syntax



bool imageantialias ( resource $image , bool $enabled )

Enables a fast drawing antialiasing method for line segments and polygons. The alpha part is not supported. Uses direct blending operations. Only for true-color images.

Line width and style are not supported.

Using antialiasing with a transparent background color may produce unexpected results. The blending method treats the background color like any other color. The lack of alpha part support means alpha-based antialiasing methods are not allowed.

Parameters

Return Value

Returns TRUE on success, or FALSE on failure.

Example





The image of the output result of the example above is as follows:

PHP Image ProcessingPHP Image Processing