IT学习者 -> 技术文档 -> PHP 完全中文手册

函数:ImageColorResolve()


ImageColorResolve

计算色表上指定或最接近颜色的索引值。

语法: int imagecolorresolve(int im, int red, int green, int blue);

返回值: 整数

函数种类: 图形处理

内容说明

本函数用来计算调色盘中指定 RGB 颜色的色素索引值。参数 red、green、blue 分别为红、绿、蓝三原色,也就是所谓的 RGB 值。若无指定颜色则取得最接近的颜色。无论如何本函数都会有索引值返回。

参考

ImageColorClosest()  ImageColorExact()  



[ 上一页  PHP中文手册  下一页 ]

PHP 首页 | PHP 导读 | PHP 函数库 | PHP 函数索引 | PHP 范例程序