imagecolorexactalpha

(PHP 4 >= 4.0.6, PHP 5)

imagecolorexactalpha -- 取得指定的颜色加透明度的索引值

说明

int imagecolorexactalpha ( resource image, int red, int green, int blue, int alpha )

返回图像调色板中指定颜色加透明度的索引值。

如果颜色不在图像的调色板中,返回 -1。 returned.

注意: 本函数需要 GD 2.0.1 或更高版本(推荐 2.0.28 及更高版本)。

参见 imagecolorclosestalpha()