【php开源代码栏目提醒】:网学会员为广大网友收集整理了,imageellipse.php,希望对大家有所帮助!
<?php
// 新建一个空白图像
$image = imagecreatetruecolor(400, 300);
// 填充背景色
$bg = imagecolorallocate($image, 0, 0, 0);
// 选择椭圆的颜色
$col_ellipse = imagecolorallocate($image, 255, 255, 255);
// 画一个椭圆
imageellipse($image, 200, 150, 300, 200, $col_ellipse);
// 输出图像
header("Content-type: image/png");
imagepng($image);
?>