mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-17 21:16:57 +08:00
147 lines
6.0 KiB
HTML
147 lines
6.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||
<title>取得当前安装的 GD 库的信息</title>
|
||
</head>
|
||
<body class="docs"><div id="layout">
|
||
<div id="layout-content"><div id="function.gd-info" class="refentry">
|
||
<div class="refnamediv">
|
||
<h1 class="refname">gd_info</h1>
|
||
<p class="verinfo">(PHP 4 >= 4.3.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">gd_info</span> — <span class="dc-title">取得当前安装的 GD 库的信息</span></p>
|
||
|
||
</div>
|
||
<div class="refsect1 unknown-descriptioo" id="refsect1-function.gd-info-unknown-descriptioo">
|
||
<h3 class="title">说明</h3>
|
||
<div class="methodsynopsis dc-description">
|
||
<span class="methodname"><strong>gd_info</strong></span>
|
||
( <span class="methodparam">void</span>
|
||
) : <span class="type">array</span></div>
|
||
|
||
<p class="simpara">
|
||
返回一个关联数组描述了安装的 GD 库的版本和性能。
|
||
</p>
|
||
<p class="para">
|
||
<table class="doctable table">
|
||
<caption><strong><span class="function"><strong>gd_info()</strong></span> 返回的数组的单元</strong></caption>
|
||
|
||
<thead>
|
||
<tr>
|
||
<th>属性</th>
|
||
<th>含义</th>
|
||
</tr>
|
||
|
||
</thead>
|
||
|
||
<tbody class="tbody">
|
||
<tr>
|
||
<td>GD Version</td>
|
||
<td><span class="type"><a href="language.types.string.html" class="type string">string</a></span> 值描述了安装的 <em>libgd</em> 的版本。</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>Freetype Support</td>
|
||
<td><span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span> 值。如果安装了 Freetype 支持则为 <strong><code>TRUE</code></strong>。</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>Freetype Linkage</td>
|
||
<td>
|
||
<span class="type"><a href="language.types.string.html" class="type string">string</a></span> 值描述了 Freetype 连接的方法。取值可能为:'with freetype',
|
||
'with TTF library' 和 'with unknown library'。本单元仅在
|
||
<em>Freetype Support</em> 的值为 <strong><code>TRUE</code></strong> 时有定义。
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>T1Lib Support</td>
|
||
<td><span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span> 值。如果包含有 <em>T1Lib</em> 支持则为 <strong><code>TRUE</code></strong>。</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>GIF Read Support</td>
|
||
<td>
|
||
<span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span> 值。如果包含有<em class="emphasis">读取</em>
|
||
<em>GIF</em> 图像的支持则为 <strong><code>TRUE</code></strong>。
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>GIF Create Support</td>
|
||
<td>
|
||
<span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span> 值。如果包含有<em class="emphasis">创建</em>
|
||
<em>GIF</em> 图像的支持则为 <strong><code>TRUE</code></strong>。
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>JPG Support</td>
|
||
<td><span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span> 值。如果包含有 <em>JPG</em> 支持则为 <strong><code>TRUE</code></strong>。</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>PNG Support</td>
|
||
<td><span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span> 值。如果包含有 <em>PNG</em> 支持则为 <strong><code>TRUE</code></strong>。</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>WBMP Support</td>
|
||
<td><span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span> 值。如果包含有 <em>WBMP</em> 支持则为 <strong><code>TRUE</code></strong>。</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>XBM Support</td>
|
||
<td><span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span> 值。如果包含有 <em>XBM</em> 支持则为 <strong><code>TRUE</code></strong>。</td>
|
||
</tr>
|
||
|
||
</tbody>
|
||
|
||
</table>
|
||
|
||
</p>
|
||
<p class="para">
|
||
<div class="example" id="example-3640">
|
||
<p><strong>Example #1 使用 <span class="function"><strong>gd_info()</strong></span></strong></p>
|
||
<div class="example-contents">
|
||
<div class="phpcode"><pre><span style="color: #000000">
|
||
<span style="color: #0000BB"><?php<br />var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">gd_info</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?></span>
|
||
</span>
|
||
</pre></div>
|
||
</div>
|
||
|
||
<div class="example-contents"><p>
|
||
典型输出为:
|
||
</p></div>
|
||
<div class="example-contents screen">
|
||
<div class="cdata"><pre>
|
||
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)
|
||
}
|
||
</pre></div>
|
||
</div>
|
||
</div>
|
||
</p>
|
||
<p class="simpara">
|
||
参见 <span class="function"><a href="imagepng.html" class="function">imagepng()</a></span>,<span class="function"><a href="imagejpeg.html" class="function">imagejpeg()</a></span>,<span class="function"><a href="imagegif.html" class="function">imagegif()</a></span>,<span class="function"><a href="imagewbmp.html" class="function">imagewbmp()</a></span>
|
||
和 <span class="function"><a href="imagetypes.html" class="function">imagetypes()</a></span>。
|
||
</p>
|
||
</div>
|
||
|
||
</div></div></div></body></html> |