$img=imagecreate(宽,高);//创建图片 imagecolorallocate($img,r,g,b);//指定背景颜色 imageellipse($img,200,200,50,50,imagecolorallocate($img,255,0,0));//在图片画一个椭圆 header('Content-type:image/png');//指定输出内容为图片 imagepng($img);//输出图片