Home > PHP > Function > GD > imageantialias()

imageantialias()

imageantialias - Should antialias functions be used or not

Syntax

bool imageantialias (resource $image, bool $enabled)

Arguments

  • image - An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
  • enabled - Whether to enable antialiasing or not.

Description

Activate the fast drawing antialiased methods for lines and wired polygons. It does not support alpha components. It works using a direct blend operation. It works only with truecolor images.

Version

PHP 4.3.2, 5

Return value

Returns TRUE on success or FALSE on failure.