mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
New Function.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@112342 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
1dfee53a7d
commit
da6c797503
1 changed files with 155 additions and 0 deletions
155
reference/image/functions/gd-info.xml
Normal file
155
reference/image/functions/gd-info.xml
Normal file
|
@ -0,0 +1,155 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id='function.gd-info'>
|
||||
<refnamediv>
|
||||
<refname>gd_info</refname>
|
||||
<refpurpose>Retrieve information about the currently installed GD support</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>gd_info</methodname>
|
||||
<void/>
|
||||
</methodsynopsis>
|
||||
<simpara>
|
||||
Returns an <literal>associative array</literal> describing the version and capabilities of
|
||||
the installed GD library.
|
||||
</simpara>
|
||||
<para>
|
||||
<table>
|
||||
<title>Elements of array returned by <function>gd_info</function></title>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>Attribute</entry>
|
||||
<entry>Meaning</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>GD Version</entry>
|
||||
<entry><literal>String</literal> value describing the installed
|
||||
<literal>libgd</literal> version.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>Freetype Support</entry>
|
||||
<entry><literal>boolean</literal> value. <literal>true</literal>
|
||||
if Freetype Support is installed.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>Freetype Linkage</entry>
|
||||
<entry><literal>String</literal> value describing the way in which
|
||||
Freetype was linked. Expected values are: 'with freetype',
|
||||
'with TTF library', and 'with unknown library'. This element will
|
||||
only be defined if <literal>Freetype Support</literal> evaluated to
|
||||
<literal>true</literal>.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>T1Lib Support</entry>
|
||||
<entry><literal>boolean</literal> value. <literal>true</literal>
|
||||
if <literal>T1Lib</literal> support is included.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>GIF Read Support</entry>
|
||||
<entry><literal>boolean</literal> value. <literal>true</literal>
|
||||
if support for <emphasis>reading</emphasis> <literal>GIF</literal>
|
||||
images is included.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>GIF Create Support</entry>
|
||||
<entry><literal>boolean</literal> value. <literal>true</literal>
|
||||
if support for <emphasis>creating</emphasis> <literal>GIF</literal>
|
||||
images is included.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>JPG Support</entry>
|
||||
<entry><literal>boolean</literal> value. <literal>true</literal>
|
||||
if <literal>JPG</literal> support is included.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>PNG Support</entry>
|
||||
<entry><literal>boolean</literal> value. <literal>true</literal>
|
||||
if <literal>PNG</literal> support is included.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>WBMP Support</entry>
|
||||
<entry><literal>boolean</literal> value. <literal>true</literal>
|
||||
if <literal>WBMP</literal> support is included.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>XBM Support</entry>
|
||||
<entry><literal>boolean</literal> value. <literal>true</literal>
|
||||
if <literal>XBM</literal> support is included.</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Using <function>gd_info</function></title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
var_dump(gd_info());
|
||||
|
||||
/* Typical Output
|
||||
==============
|
||||
|
||||
array(9) {
|
||||
["GD Version"]=>
|
||||
string(24) "bundled (2.0 compatible)"
|
||||
["FreeType Support"]=>
|
||||
bool(false)
|
||||
["T1Lib Support"]=>
|
||||
bool(false)
|
||||
["GIF Read Support"]=>
|
||||
bool(true)
|
||||
["GIF Create Support"]=>
|
||||
bool(false)
|
||||
["JPG Support"]=>
|
||||
bool(false)
|
||||
["PNG Support"]=>
|
||||
bool(true)
|
||||
["WBMP Support"]=>
|
||||
bool(true)
|
||||
["XBM Support"]=>
|
||||
bool(false)
|
||||
}
|
||||
|
||||
*/
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<simpara>
|
||||
See also: <function>imagepng</function>,
|
||||
<function>imagejpeg</function>,
|
||||
<function>imagegif</function>,
|
||||
<function>imagewbmp</function>, and
|
||||
<function>imagetypes</function>.
|
||||
</simpara>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
sgml-omittag:t
|
||||
sgml-shorttag:t
|
||||
sgml-minimize-attributes:nil
|
||||
sgml-always-quote-attributes:t
|
||||
sgml-indent-step:1
|
||||
sgml-indent-data:t
|
||||
indent-tabs-mode:nil
|
||||
sgml-parent-document:nil
|
||||
sgml-default-dtd-file:"../../../../manual.ced"
|
||||
sgml-exposed-tags:nil
|
||||
sgml-local-catalogs:nil
|
||||
sgml-local-ecat-files:nil
|
||||
End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
Loading…
Reference in a new issue