cvs: phpdoc /en/reference/image/functions imageellipse.xml

From: Date: Mon, 14 Jul 2008 16:56:40 +0000
Subject: cvs: phpdoc /en/reference/image/functions imageellipse.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-1865@lists.php.net to get a copy of this message
danbrown Mon Jul 14 16:56:40 2008 UTC Modified files: /phpdoc/en/reference/image/functions imageellipse.xml Log: Addresses bug #45511 and user note #84416. http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/functions/imageellipse.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc/en/reference/image/functions/imageellipse.xml diff -u phpdoc/en/reference/image/functions/imageellipse.xml:1.13 phpdoc/en/reference/image/functions/imageellipse.xml:1.14 --- phpdoc/en/reference/image/functions/imageellipse.xml:1.13 Wed Jun 20 22:24:38 2007 +++ phpdoc/en/reference/image/functions/imageellipse.xml Mon Jul 14 16:56:39 2008 @@ -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);

« previous php.doc.cvs (#1865) next »