[PHP-DOC] cvs: phpdoc /en/functions image.xml From: Rasmus Lerdorf (rasmus <email protected>)
Date: 07/14/00

rasmus Fri Jul 14 15:29:01 2000 EDT

  Modified files:
    /phpdoc/en/functions image.xml
  Log:
  Docs for ImageTypes() function
  
  
Index: phpdoc/en/functions/image.xml
diff -u phpdoc/en/functions/image.xml:1.12 phpdoc/en/functions/image.xml:1.13
--- phpdoc/en/functions/image.xml:1.12 Sat Jul 8 03:52:07 2000
+++ phpdoc/en/functions/image.xml Fri Jul 14 15:29:01 2000
@@ -2031,6 +2031,38 @@
    </refsect1>
   </refentry>
 
+ <refentry id="function.imagetypes">
+ <refnamediv>
+ <refname>ImageTypes</refname>
+ <refpurpose>
+ Return the image types supported by this PHP build
+ </refpurpose>
+ </refnamediv>
+ <refsect1>
+ <title>Description</title>
+ <funcsynopsis>
+ <funcprototype>
+ <funcdef>int <function>imagettypes</function></funcdef>
+ </funcprototype>
+ </funcsynopsis>
+ <para>
+ This function returns a bit-field corresponding to the image formats
+ supported by the version of GD linked into PHP. The following bits
+ are returned, IMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP. To check for PNG
+ support, for example, do this:
+ <example>
+ <title>ImageTypes</title>
+ <programlisting role="php">
+&lt;?php
+if(ImageTypes() &amp; IMG_PNG) {
+ echo "PNG Support is enabled";
+}
+?&gt;
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+ </refentry>
  </reference>
 
 <!-- Keep this comment at the end of the file