Posted on April 26th, 2008 by rolode
ImageColorsForIndex
取得色表上指定索引的颜色。
语法: array imagecolorsforindex(int im, int index);
返回值: 数组
函数种类: 图形处理
内容说明
本函数用来取得调色盘上指定索引的颜色值。参数 index 为索引值。数组返回值分别为红、绿、蓝三原色的值。
参考
ImageColorAt() ImageColorSet()
Filed under: PHP 技术 学习 教程 | No Comments »
Posted on April 26th, 2008 by rolode
ImageColorSet
配置色表上指定索引的颜色。
语法: boolean imagecolorset(int im, int index, int red, int green, int blue);
返回值: 布尔值
函数种类: 图形处理
内容说明
本函数用来配置调色盘上指定索引的颜色值。参数 index 为索引值。参数 red、green、blue 分别为红、绿、蓝三原色,也就是所谓的 RGB 值。此函数适合将图片上某颜色改掉,即利用索引的颜色更改图片颜色。
参考
ImageColorAt()
Filed under: PHP 技术 学习 教程 | No Comments »
Posted on April 26th, 2008 by rolode
ImageColorsTotal
计算图的颜色数。
语法: int imagecolorstotal(int im);
返回值: 整数
函数种类: 图形处理
内容说明
本函数用来计算图片的调色盘有几种不同的颜色。
参考
ImageColorAt() ImageColorsForIndex()
Filed under: PHP 技术 学习 教程 | No Comments »
Posted on April 11th, 2008 by rolode
ImageColorResolve
计算色表上指定或最接近颜色的索引值。
语法: int imagecolorresolve(int im, int red, int green, int blue);
返回值: 整数
函数种类: 图形处理
内容说明
本函数用来计算调色盘中指定 RGB 颜色的色素索引值。参数 red、green、blue 分别为红、绿、蓝三原色,也就是所谓的 RGB 值。若无指定颜色则取得最接近的颜色。无论如何本函数都会有索引值返回。
参考
ImageColorClosest() ImageColorExact()
Filed under: PHP 技术 学习 教程 | No Comments »
Posted on April 11th, 2008 by rolode
ImageColorExact
计算色表上指定颜色索引值。
语法: int imagecolorexact(int im, int red, int green, int blue);
返回值: 整数
函数种类: 图形处理
内容说明
本函数用来计算调色盘中指定 RGB 颜色的色素索引值。参数 red、green、blue 分别为红、绿、蓝三原色,也就是所谓的 RGB 值。若调色盘中没有指定的颜色,则返回 -1。
参考
ImageColorClosest()
Filed under: PHP 技术 学习 教程 | No Comments »