(PHP 4 >= 4.0.6, PHP 5, PHP 7)
imagefilledellipse — 锟斤拷一锟斤拷圆锟斤拷锟斤拷锟�
$image
, int $cx
, int $cy
, int $width
, int $height
, int $color
) : bool
锟斤拷一锟斤拷圆锟斤拷锟斤拷涞街革拷锟斤拷锟� image
锟斤拷
image
锟斤拷图锟襟创斤拷锟斤拷锟斤拷(锟斤拷锟斤拷imagecreatetruecolor())锟斤拷锟截碉拷图锟斤拷锟斤拷源锟斤拷
cx
锟斤拷锟斤拷锟� x 锟斤拷锟疥。
cy
锟斤拷锟斤拷锟� y 锟斤拷锟疥。
width
锟斤拷圆锟侥匡拷取锟�
height
锟斤拷圆锟侥高度★拷
color
要锟斤拷锟斤拷锟斤拷色锟斤拷锟斤拷色锟斤拷识锟缴猴拷锟斤拷 imagecolorallocate() 锟斤拷锟斤拷锟斤拷
锟缴癸拷时锟斤拷锟斤拷 TRUE
锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE
锟斤拷
Example #1 imagefilledellipse() 锟斤拷锟斤拷
<?php
// create a blank image
$image = imagecreatetruecolor(400, 300);
// fill the background color
$bg = imagecolorallocate($image, 0, 0, 0);
// choose a color for the ellipse
$col_ellipse = imagecolorallocate($image, 255, 255, 255);
// draw the white ellipse
imagefilledellipse($image, 200, 150, 300, 200, $col_ellipse);
// output the picture
header("Content-type: image/png");
imagepng($image);
?>
锟斤拷锟斤拷锟斤拷锟教碉拷锟斤拷锟斤拷锟斤拷锟斤拷冢锟�
Note: 锟剿猴拷锟斤拷锟斤拷要 GD 2.0.1 锟斤拷锟斤拷甙姹�(锟狡硷拷 2.0.28 锟斤拷锟斤拷锟竭版本)锟斤拷