imagecolorresolve

(PHP 4, PHP 5, PHP 7)

imagecolorresolve取得指定颜色的索引值或有可能得到的最接近的替代值

说明

imagecolorresolve ( resource $image , int $red , int $green , int $blue ) : int

本函数可以保证对所请求的颜色返回一个颜色索引,要么是确切值要么是所能得到最接近的替代值。

如果从文件创建了图像,只有图像中使用了的颜色会被辨析。仅出现在调色板中的颜色不会被辨析。

参见 imagecolorclosest()

相关文章
php gd 和图像处理 函数 取得当前安装的 gd 库的信息php gd 和图像处理 函数 取得图像类型的文件后缀php gd 和图像处理 函数 取得 getimagesize,exif read data,exif thumbnail,exif imagetype 所返回的图像类型的 mime 类型php gd 和图像处理 函数 取得某像素的颜色索引值php gd 和图像处理 函数 取得与指定的颜色最接近的颜色的索引值php gd 和图像处理 函数 取得与指定的颜色加透明度最接近的颜色php gd 和图像处理 函数 取得与给定颜色最接近的色度的黑白色的索引php gd 和图像处理 函数 取消图像颜色的分配php gd 和图像处理 函数 取得指定颜色的索引值php gd 和图像处理 函数 取得指定的颜色加透明度的索引值php gd 和图像处理 函数 使一个图像中调色板版本的颜色与真彩色版本更能匹配php gd 和图像处理 函数 取得指定颜色的索引值或有可能得到的最接近的替代值php gd 和图像处理 函数 取得指定颜色 + alpha 的索引值或有可能得到的最接近的替代值php gd 和图像处理 函数 给指定调色板索引设定颜色php gd 和图像处理 函数 取得某索引的颜色php gd 和图像处理 函数 取得一幅图像的调色板中颜色的数目php gd 和图像处理 函数 区域填充到指定颜色的边界为止php gd 和图像处理 函数 取得字体宽度php gd 和图像处理 函数 取得图像宽度php gd 和图像处理 函数 取得图像高度
关注编程学问公众号