#45511 [Opn->Csd]: Mistake With Example On imageelipse() Function Page

From: Date: Mon, 14 Jul 2008 16:57:10 +0000
Subject: #45511 [Opn->Csd]: Mistake With Example On imageelipse() Function Page
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-949@lists.php.net to get a copy of this message
ID: 45511 Updated by: danbrown@php.net Reported By: danbrown@php.net -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: N/A PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2008-07-14 15:16:13] danbrown@php.net Description: ------------ As reported by user note #84416, imageelipse() function example #1 defines background, but doesn't use it anywhere. As a result, changing this color will not change the background. Reproduce code: --------------- <?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); // Should include the following line, but doesn't. // imagefill($image, 0, 0, $bg); // draw the ellipse imageellipse($image, 200, 150, 300, 200, $col_ellipse); // output the picture header("Content-type: image/png"); imagepng($image); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45511&edit=1

« previous php.doc.bugs (#949) next »