mazzanet                Mon Jan  2 09:37:26 2006 UTC

  Modified files:              
    /phpdoc/en/reference/image/functions        imagecolorallocate.xml 
                                                imagefill.xml 
  Log:
  Make the various methods of setting background colour more obvious
  
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/image/functions/imagecolorallocate.xml?r1=1.9&r2=1.10&diff_format=u
Index: phpdoc/en/reference/image/functions/imagecolorallocate.xml
diff -u phpdoc/en/reference/image/functions/imagecolorallocate.xml:1.9 
phpdoc/en/reference/image/functions/imagecolorallocate.xml:1.10
--- phpdoc/en/reference/image/functions/imagecolorallocate.xml:1.9      Mon Jan 
 2 09:14:22 2006
+++ phpdoc/en/reference/image/functions/imagecolorallocate.xml  Mon Jan  2 
09:37:26 2006
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
 <!-- splitted from ./en/functions/image.xml, last change in rev 1.36 -->
  <refentry id="function.imagecolorallocate">
   <refnamediv>
@@ -35,16 +35,16 @@
     </para>
    </note>
    <para>
-    <informalexample>
+    <example>
+     <title><function>imagecolorallocate</function> example</title>
      <programlisting role="php">
 <![CDATA[
 <?php
 
-$im = imagecreatetruecolor('example.jpg', 100, 100);
+$im = imagecreate('example.jpg', 100, 100);
 
 // sets background to red
-$red = imagecolorallocate($im, 255, 0, 0);
-imagefill($im, 0, 0, $red);
+$background = imagecolorallocate($im, 255, 0, 0);
 
 // sets some colors
 $white = imagecolorallocate($im, 255, 255, 255);
@@ -57,7 +57,7 @@
 ?>
 ]]>
      </programlisting>
-    </informalexample>
+    </example>
    </para>
    <para>
     Returns -1 if the allocation failed.
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/image/functions/imagefill.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc/en/reference/image/functions/imagefill.xml
diff -u phpdoc/en/reference/image/functions/imagefill.xml:1.5 
phpdoc/en/reference/image/functions/imagefill.xml:1.6
--- phpdoc/en/reference/image/functions/imagefill.xml:1.5       Thu Jun 23 
16:53:23 2005
+++ phpdoc/en/reference/image/functions/imagefill.xml   Mon Jan  2 09:37:26 2006
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
   <refentry id="function.imagefill">
    <refnamediv>
@@ -21,6 +21,27 @@
      (top left is 0, 0) with color <parameter>color</parameter> in the
      image <parameter>image</parameter>.
     </para>
+    <para>
+     <example>
+      <title><function>imagefill</function> example</title>
+      <programlisting role="php">
+<![CDATA[
+<?php
+
+$im = imagecreatetruecolor('example.jpg', 100, 100);
+
+// sets background to red
+$red = imagecolorallocate($im, 255, 0, 0);
+imagefill($im, 0, 0, $red);
+
+?>
+]]>
+      </programlisting>
+     </example>
+    </para>
+    <para>
+     See also <function>imagecolorallocate</function>.
+    </para>
    </refsect1>
   </refentry>
 

Reply via email to