欧美AV无码一区二区,麻豆+无码+国产在线+观看,欧美狂躁少妇XXXX高潮无码,美女扒开屁股让男人桶免费观看,极品粉嫩国产18尤物在线播放

imageantialias

(PHP 4 >= 4.3.2, PHP 5, PHP 7, PHP 8)

imageantialias是否使用抗鋸齒(antialias)功能

說(shuō)明

imageantialias(resource $image, bool $enabled): bool

對線(xiàn)段和多邊形啟用快速畫(huà)圖抗鋸齒方法。不支持 alpha 部分。使用直接混色操作。僅用于真彩色圖像。

不支持線(xiàn)寬和風(fēng)格。

使用抗鋸齒和透明背景色可能出現未預期的結果?;焐椒ò驯尘吧敵扇魏纹渌伾褂?。缺乏 alpha 部分的支持導致不允許基于 alpha 抗鋸齒方法。

參數

image

由圖象創(chuàng )建函數(例如imagecreatetruecolor())返回的 GdImage 對象。

enabled

是否啟用抗鋸齒。

返回值

成功時(shí)返回 true, 或者在失敗時(shí)返回 false。

范例

示例 #1 A comparison of two lines, one with anti-aliasing switched on

<?php
// Setup an anti-aliased image and a normal image
$aa imagecreatetruecolor(400100);
$normal imagecreatetruecolor(200100);

// Switch antialiasing on for one image
imageantialias($aatrue);

// Allocate colors
$red imagecolorallocate($normal25500);
$red_aa imagecolorallocate($aa25500);

// Draw two lines, one with AA enabled
imageline($normal00200100$red);
imageline($aa00200100$red_aa);

// Merge the two images side by side for output (AA: left, Normal: Right)
imagecopymerge($aa$normal200000200100100);

// Output image
header('Content-type: image/png');

imagepng($aa);
imagedestroy($aa);
imagedestroy($normal);
?>

以上例程的輸出類(lèi)似于:

Output of example : A comparison of two lines, one with anti-aliasing switched on

注釋

參見(jiàn)

欧美AV无码一区二区,麻豆+无码+国产在线+观看,欧美狂躁少妇XXXX高潮无码,美女扒开屁股让男人桶免费观看,极品粉嫩国产18尤物在线播放