ImageColorAllocate
匹配颜色。 
语法: int imagecolorallocate(int im, int red, int green, int blue); 
返回值: 整数 
函数种类: 图形处理 
 本函数用来匹配图形的颜色,供其它绘图函数使用。参数 im 表示图形的 handle。参数 red、green、blue 是色彩三原色,其值从 0 至 255。 
 
<? $white = ImageColorAllocate($im, 255,255,255); $black = ImageColorAllocate($im, 0,0,0); ?>
 
 
  |