当前位置:Gxlcms > PHP教程 > PHP匹配颜色函数的使用技巧_PHP教程

PHP匹配颜色函数的使用技巧_PHP教程

时间:2021-07-01 10:21:17 帮助过:26人阅读

定义

匹配颜色。

语法:

int imagecolorallocate(int im, int red, int green, int blue);

返回值:

整数

函数种类:

图形处理

PHP匹配颜色函数内容说明:

本函数用来匹配图形的颜色,供其它绘图函数使用。参数 im 表示图形的 handle。参数 red、green、blue 是色彩三原色,其值从 0 至 255。

PHP匹配颜色函数使用范例:

  1. < ?
  2. $white = imagecolorallocate
    ($im, 255,255,255);
  3. $black = imagecolorallocate
    ($im, 0,0,0);
  4. ?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/446058.htmlTechArticle定义 匹配颜色。 语法: int imagecolorallocate(int im, int red, int green, int blue); 返回值: 整数 函数种类: 图形处理 PHP匹配颜色函数内容说明: 本函数...

人气教程排行