#36447 [Opn->Csd]: imagefill page, example one has invalid parameter count
| From: | nlopess@php.net | Date: | Sat, 18 Feb 2006 20:14:52 +0000 |
| Subject: | #36447 [Opn->Csd]: imagefill page, example one has invalid parameter count | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969371982@lists.php.net to get a copy of this message | ||
ID: 36447
Updated by: nlopess@php.net
Reported By: todd at magnifisites dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Any
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:
------------------------------------------------------------------------
[2006-02-18 20:57:19] todd at magnifisites dot com
Description:
------------
Example 1 has an invalid parameter count in the documentation. The
line reading ...
$im = imagecreatetruecolor('example.jpg', 100, 100);
... is in error.
Expected result:
----------------
A working example:
<?php
$im = imagecreatetruecolor(100, 100);
// sets background to red
$red = imagecolorallocate($im, 255, 0, 0);
imagefill($im, 0, 0, $red);
header("Content-type: image/png");
imagepng($im);
imagedestroy($im);
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36447&edit=1