YouTip LogoYouTip

Php Imageantialias

# PHP imageantialias - Whether to Use Antialiasing Function [![Image 4: PHP Image Processing](#)PHP Image Processing](#) imageantialias β€” Whether to use the antialiasing function. ### Syntax bool imageantialias ( resource $image , bool $enabled ) Enables a fast drawing antialiasing method for lines and polygons. Does not support the alpha part. Uses direct mixing operations. Only for true color images. Does not support line width and style. Using antialiasing with a transparent background color may produce unexpected results. The mixing method treats the background color like any other color. The lack of support for the alpha part means alpha-based antialiasing methods are not allowed. ### Parameters * **image**: An image resource returned by an image creation function (e.g., imagecreatetruecolor()). * **enabled**: Whether to enable antialiasing. ### Return Value Returns TRUE on success, or FALSE on failure. ### Example The output image from the above example is as follows: !(#) [![Image 6: PHP Image Processing](#)PHP Image Processing](#)
← Highcharts Spline TimeHighcharts Spline Symbols β†’