一 代码
<?php
header("Content-type: image/png"); //将图像输出到浏览器
$img = imagecreate(200, 200); //创建一个 200×200 的图像
$bg = imagecolorallocate($img, 12,135, 20); //设置图像背景色
$white = imagecolorallocate($img, 255, 255, 255); //设置绘制图像的颜色为白色
imagearc($img, 100, 100, 150, 150, 0, 360, $white); //绘制一个白色的圆
imagepng($img); //输出图像
imagedestroy($img); //释放内存
?>
二 运行结果