didou           Fri Jun 20 09:00:53 2003 EDT

  Modified files:              
    /phpdoc/en/reference/image/functions        imagecreate.xml 
                                                imagecreatetruecolor.xml 
  Log:
  adding example, with image_destroy() and some WS
  
Index: phpdoc/en/reference/image/functions/imagecreate.xml
diff -u phpdoc/en/reference/image/functions/imagecreate.xml:1.5 
phpdoc/en/reference/image/functions/imagecreate.xml:1.6
--- phpdoc/en/reference/image/functions/imagecreate.xml:1.5     Thu May 29 16:22:12 
2003
+++ phpdoc/en/reference/image/functions/imagecreate.xml Fri Jun 20 09:00:52 2003
@@ -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.36 -->
  <refentry id="function.imagecreate">
   <refnamediv>
@@ -36,6 +36,7 @@
 $text_color = imagecolorallocate ($im, 233, 14, 91);
 imagestring ($im, 1, 5, 5,  "A Simple Text String", $text_color);
 imagepng ($im);
+imagedestroy ($im);
 ?>
 ]]>
      </programlisting>
Index: phpdoc/en/reference/image/functions/imagecreatetruecolor.xml
diff -u phpdoc/en/reference/image/functions/imagecreatetruecolor.xml:1.5 
phpdoc/en/reference/image/functions/imagecreatetruecolor.xml:1.6
--- phpdoc/en/reference/image/functions/imagecreatetruecolor.xml:1.5    Thu May 29 
16:22:12 2003
+++ phpdoc/en/reference/image/functions/imagecreatetruecolor.xml        Fri Jun 20 
09:00:52 2003
@@ -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.imagecreatetruecolor">
   <refnamediv>
@@ -18,14 +18,42 @@
     representing a black image of size <parameter>x_size</parameter>
     by <parameter>y_size</parameter>.
    </para>
-    <note><para>This function was added in PHP 4.0.6 and requires GD 2.0.1 or 
later</para></note>
-    <note><para>This function will not work with GIF file formats.</para></note>
+   <para>
+    <example>
+     <title>
+      Creating a new GD image stream and outputting an image.
+     </title>
+     <programlisting role="php">
+<![CDATA[
+<?php
+header ("Content-type: image/png");
+$im = @imagecreatetruecolor (50, 100)
+      or die ("Cannot Initialize new GD image stream");
+$text_color = imagecolorallocate ($im, 233, 14, 91);
+imagestring ($im, 1, 5, 5,  "A Simple Text String", $text_color);
+imagepng ($im);
+imagedestroy ($im);
+?>   
+]]> 
+     </programlisting>
+    </example>
+   </para>
+   <note>
+    <para>
+     This function was added in PHP 4.0.6 and requires GD 2.0.1 or later.
+    </para>
+   </note>
+   <note>
     <para>
-     See also <function>imagedestroy</function> and
-     <function>imagecreate</function>.
+     This function will not work with GIF file formats.
     </para>
-   </refsect1>
-  </refentry>
+   </note>
+   <para>
+    See also <function>imagedestroy</function> and
+    <function>imagecreate</function>.
+   </para>
+  </refsect1>
+ </refentry>
 
 <!-- Keep this comment at the end of the file
 Local variables:



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to