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


imagecolorexactalpha

(PHP 4 >= 4.0.6, PHP 5)

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

说明

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

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

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

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

参见 imagecolorclosestalpha()


«  imagecolorexact
» imagecolormatch
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3