Date: 07/14/00
- Next message: Sridhar RajaKumar: "[PHP-DOC] Urgent : Help required !!!"
- Previous message: Andrei Zmievski: "Re: [PHP-DOC] cvs: phpdoc /en/functions pspell.xml"
- Next in thread: David Croft: "[PHP-DOC] cvs: phpdoc /en/functions image.xml"
- Maybe reply: David Croft: "[PHP-DOC] cvs: phpdoc /en/functions image.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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">
+<?php
+if(ImageTypes() & IMG_PNG) {
+ echo "PNG Support is enabled";
+}
+?>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+ </refentry>
</reference>
<!-- Keep this comment at the end of the file
- Next message: Sridhar RajaKumar: "[PHP-DOC] Urgent : Help required !!!"
- Previous message: Andrei Zmievski: "Re: [PHP-DOC] cvs: phpdoc /en/functions pspell.xml"
- Next in thread: David Croft: "[PHP-DOC] cvs: phpdoc /en/functions image.xml"
- Maybe reply: David Croft: "[PHP-DOC] cvs: phpdoc /en/functions image.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

