PHP 4完全中文手册 我形我塑相册 家园常用软件下载 我形我塑相册活动专区 给我留言 我形我塑网站首页
我形我塑,网络相册,www.5x54.com 相册 相册 心情相册,少女相册 免费申请,我形我塑免费相册
 PHP 4 完全中文手册   http://www.5x54.com
 

 


函数:ImageColorAllocate()


ImageColorAllocate

匹配颜色。

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

返回值: 整数

函数种类: 图形处理

内容说明

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

使用范例

<?
$white 
ImageColorAllocate($im255,255,255);
$black ImageColorAllocate($im0,0,0);
?>


[ 上一页 下一页 ]