<?php
//定义输出为图像类型
header("content-type:image/gif");
//新建图象
$pic=imagecreate(240,30);
//定义黑白颜色
$black=imagecolorallocate($pic,0,0,0);
$white=imagecolorallocate($pic,255,255,255);
//定义字体
伊图教程网[www.etoow.com]
http://www.etoow.com/html/2007-03/1172834392.html
$font="c://WIN2000//fonts//simhei.ttf";
用GD库给图片加中文实例
'http://www.etoow.com/html/2007-03/1172834392.html