Addresses bug #45511 and user note #84416.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@262676 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel P. Brown 2008-07-14 16:56:39 +00:00
parent 343f0775bd
commit e9213453e6

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.13 $ -->
<!-- $Revision: 1.14 $ -->
<refentry xml:id="function.imageellipse" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imageellipse</refname>
@ -84,19 +84,22 @@
<![CDATA[
<?php
// create a blank image
// Create a blank image.
$image = imagecreatetruecolor(400, 300);
// fill the background color
// Select the background color.
$bg = imagecolorallocate($image, 0, 0, 0);
// choose a color for the ellipse
// Fill the background with the color selected above.
imagefill($image, 0, 0, $bg);
// Choose a color for the ellipse.
$col_ellipse = imagecolorallocate($image, 255, 255, 255);
// draw the ellipse
// Draw the ellipse.
imageellipse($image, 200, 150, 300, 200, $col_ellipse);
// output the picture
// Output the image.
header("Content-type: image/png");
imagepng($image);