cvs: phpdoc /en/reference/image/functions imagefill.xml
| From: | Nuno Lopes | Date: | Sat, 18 Feb 2006 20:14:48 +0000 |
| Subject: | cvs: phpdoc /en/reference/image/functions imagefill.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969371981@lists.php.net to get a copy of this message | ||
nlopess Sat Feb 18 20:14:48 2006 UTC
Modified files:
/phpdoc/en/reference/image/functions imagefill.xml
Log:
fix #36447: example doesnt work
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/image/functions/imagefill.xml?r1=1.6&r2=1.7&diff_format=u
Index: phpdoc/en/reference/image/functions/imagefill.xml
diff -u phpdoc/en/reference/image/functions/imagefill.xml:1.6
phpdoc/en/reference/image/functions/imagefill.xml:1.7
--- phpdoc/en/reference/image/functions/imagefill.xml:1.6 Mon Jan 2 09:37:26 2006
+++ phpdoc/en/reference/image/functions/imagefill.xml Sat Feb 18 20:14:48 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
<refentry id="function.imagefill">
<refnamediv>
@@ -28,12 +28,15 @@
<![CDATA[
<?php
-$im = imagecreatetruecolor('example.jpg', 100, 100);
+$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);
?>
]]>
</programlisting>