didou           Thu May 29 16:22:13 2003 EDT

  Modified files:              
    /phpdoc/en/reference/image/functions        exif-imagetype.xml 
                                                exif-read-data.xml 
                                                imagearc.xml imagecreate.xml 
                                                imagecreatetruecolor.xml 
                                                imagesx.xml imagesy.xml 
  Log:
  examples, see also and typos
  
Index: phpdoc/en/reference/image/functions/exif-imagetype.xml
diff -u phpdoc/en/reference/image/functions/exif-imagetype.xml:1.10 
phpdoc/en/reference/image/functions/exif-imagetype.xml:1.11
--- phpdoc/en/reference/image/functions/exif-imagetype.xml:1.10 Tue May 27 17:35:26 
2003
+++ phpdoc/en/reference/image/functions/exif-imagetype.xml      Thu May 29 16:22:12 
2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.10 $ -->
+<!-- $Revision: 1.11 $ -->
 <!-- splitted from ./en/functions/image.xml, last change in rev 1.81 -->
  <refentry id="function.exif-imagetype">
   <refnamediv>
@@ -102,6 +102,20 @@
      This function does not require the GD image library.
     </simpara>
    </note>
+   <example>
+    <title><function>exif_imagetype</function> example</title>
+    <programlisting role="php">
+<![CDATA[
+<?php
+
+if (exif_imagetype("image.gif") != IMAGETYPE_GIF) {
+    echo "The picture is not a gif";
+}
+
+?>
+]]>  
+    </programlisting>
+   </example>
    <simpara>
     See also <function>getimagesize</function>.
    </simpara>
Index: phpdoc/en/reference/image/functions/exif-read-data.xml
diff -u phpdoc/en/reference/image/functions/exif-read-data.xml:1.6 
phpdoc/en/reference/image/functions/exif-read-data.xml:1.7
--- phpdoc/en/reference/image/functions/exif-read-data.xml:1.6  Wed Aug 28 07:58:59 
2002
+++ phpdoc/en/reference/image/functions/exif-read-data.xml      Thu May 29 16:22:12 
2003
@@ -1,10 +1,10 @@
 <?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.78 -->
   <refentry id="function.exif-read-data">
    <refnamediv>
     <refname>exif_read_data</refname>
-    <refpurpose>Read the <acronym>EXIF</acronym> headers from <acronym>JPEG</acronym>
+    <refpurpose>Reads the <acronym>EXIF</acronym> headers from <acronym>JPEG</acronym>
     or <acronym>TIFF</acronym>. This way you can read meta data generated by digital
     cameras.</refpurpose>
    </refnamediv>
@@ -26,10 +26,10 @@
     </para>
     <para>
      <parameter>filename</parameter> is the name of the file to read. This
-     cannot be a url.
+     cannot be an url.
     </para>
     <para>
-     <parameter>sections</parameter> a comma separated list of sections that
+     <parameter>sections</parameter> is a comma separated list of sections that
      need to be present in file to produce a result array.
      <informaltable>
      <tgroup cols="2">
Index: phpdoc/en/reference/image/functions/imagearc.xml
diff -u phpdoc/en/reference/image/functions/imagearc.xml:1.4 
phpdoc/en/reference/image/functions/imagearc.xml:1.5
--- phpdoc/en/reference/image/functions/imagearc.xml:1.4        Wed Feb 12 12:49:07 
2003
+++ phpdoc/en/reference/image/functions/imagearc.xml    Thu May 29 16:22:12 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- splitted from ./en/functions/image.xml, last change in rev 1.36 -->
  <refentry id="function.imagearc">
   <refnamediv>
@@ -30,6 +30,32 @@
     <parameter>e</parameter> arguments. 0&deg; is located at the three-o'clock
     position, and the arc is drawn counter-clockwise.
    </para>
+   <example>
+    <title>Drawing a circle with <function>imagearc</function></title>
+    <programlisting role="php">
+<![CDATA[
+<?php
+
+// create a 200*200 image
+$img = imagecreate(200, 200);
+
+// allocate some colors
+$white = imagecolorallocate($img, 255, 255, 255);
+   
+// draw a white circle 
+imagearc($img, 100, 100, 150, 150, 0, 360, $white);
+
+// output image in the browser
+header("Content-type: image/png");
+imagepng($img);
+   
+// free memory
+imagedestroy($img);
+
+?>
+]]>
+    </programlisting>
+   </example>
    <para>
     See also <function>imageellipse</function>,
     <function>imagefilledellipse</function>, and
Index: phpdoc/en/reference/image/functions/imagecreate.xml
diff -u phpdoc/en/reference/image/functions/imagecreate.xml:1.4 
phpdoc/en/reference/image/functions/imagecreate.xml:1.5
--- phpdoc/en/reference/image/functions/imagecreate.xml:1.4     Sat Jan 18 22:09:48 
2003
+++ phpdoc/en/reference/image/functions/imagecreate.xml Thu May 29 16:22:12 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- splitted from ./en/functions/image.xml, last change in rev 1.36 -->
  <refentry id="function.imagecreate">
   <refnamediv>
@@ -42,7 +42,8 @@
     </example>
    </para>
    <para>
-    See also <function>imagecreatetruecolor</function>.
+    See also <function>imagedestroy</function> and
+    <function>imagecreatetruecolor</function>.
    </para>
   </refsect1>
  </refentry>
Index: phpdoc/en/reference/image/functions/imagecreatetruecolor.xml
diff -u phpdoc/en/reference/image/functions/imagecreatetruecolor.xml:1.4 
phpdoc/en/reference/image/functions/imagecreatetruecolor.xml:1.5
--- phpdoc/en/reference/image/functions/imagecreatetruecolor.xml:1.4    Wed Sep  4 
12:21:44 2002
+++ phpdoc/en/reference/image/functions/imagecreatetruecolor.xml        Thu May 29 
16:22:12 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
  <refentry id="function.imagecreatetruecolor">
   <refnamediv>
@@ -20,6 +20,10 @@
    </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>
+     See also <function>imagedestroy</function> and
+     <function>imagecreate</function>.
+    </para>
    </refsect1>
   </refentry>
 
Index: phpdoc/en/reference/image/functions/imagesx.xml
diff -u phpdoc/en/reference/image/functions/imagesx.xml:1.3 
phpdoc/en/reference/image/functions/imagesx.xml:1.4
--- phpdoc/en/reference/image/functions/imagesx.xml:1.3 Thu Apr 18 13:13:10 2002
+++ phpdoc/en/reference/image/functions/imagesx.xml     Thu May 29 16:22:12 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
   <refentry id="function.imagesx">
    <refnamediv>
@@ -16,8 +16,24 @@
      <function>imagesx</function> returns the width of the image
      identified by <parameter>image</parameter>.
     </para>
+    <example>
+     <title>Using <function>imagesx</function></title>
+     <programlisting role="php">
+<![CDATA[
+<?php
+
+// create a 300*200 image
+$img = imagecreate(300, 200);
+
+echo imagesx($img); // 300
+
+?>
+]]>  
+     </programlisting>
+    </example>
     <para>
-     See also <function>imagecreate</function> and
+     See also <function>imagecreate</function>,
+     <function>getimagesize</function> and
      <function>imagesy</function>.
     </para>
    </refsect1>
Index: phpdoc/en/reference/image/functions/imagesy.xml
diff -u phpdoc/en/reference/image/functions/imagesy.xml:1.3 
phpdoc/en/reference/image/functions/imagesy.xml:1.4
--- phpdoc/en/reference/image/functions/imagesy.xml:1.3 Thu Apr 18 13:13:10 2002
+++ phpdoc/en/reference/image/functions/imagesy.xml     Thu May 29 16:22:13 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
   <refentry id="function.imagesy">
    <refnamediv>
@@ -16,8 +16,24 @@
      <function>imagesy</function> returns the height of the image
      identified by <parameter>image</parameter>.
     </para>
+    <example>
+     <title>Using <function>imagesy</function></title>
+     <programlisting role="php">
+<![CDATA[
+<?php
+
+// create a 300*200 image
+$img = imagecreate(300, 200);
+
+echo imagesy($img); // 200
+
+?>
+]]>  
+     </programlisting>
+    </example>
     <para>
-     See also <function>imagecreate</function> and
+     See also <function>imagecreate</function>,
+     <function>getimagesize</function> and
      <function>imagesx</function>.
     </para>
    </refsect1>

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

Reply via email to