⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 image.constants.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Predefined Constants</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="image.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="image.examples.html">Examples</a></div> <div class="up"><a href="book.image.html">GD</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1>Predefined Constants</h1> <p class="simpara">The constants below are defined by this extension, andwill only be available when the extension has eitherbeen compiled into PHP or dynamically loaded at runtime.</p> <dl>  <dt>   <span class="term">    <b><tt>GD_VERSION</tt></b>    (<a href="language.types.string.html" class="type string">string</a>)   </span>   <dd>    <span class="simpara">     The GD version PHP was compiled against.     (Available as of PHP 5.2.4)    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>GD_MAJOR_VERSION</tt></b>    (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     The GD major version PHP was compiled against.     (Available as of PHP 5.2.4)    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>GD_MINOR_VERSION</tt></b>    (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     The GD minor version PHP was compiled against.     (Available as of PHP 5.2.4)    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>GD_RELEASE_VERSION</tt></b>    (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     The GD release version PHP was compiled against.     (Available as of PHP 5.2.4)    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>GD_EXTRA_VERSION</tt></b>    (<a href="language.types.string.html" class="type string">string</a>)   </span>   <dd>    <span class="simpara">     The GD &quot;extra&quot; version (beta/rc..) PHP was compiled against.     (Available as of PHP 5.2.4)    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>GD_BUNDLE</tt></b>    (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     When the bundled version of GD is used this is 1 otherwise      its set to 0.    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_GIF</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Used as a return value by <a href="function.imagetypes.html" class="function">imagetypes()</a>    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_JPG</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Used as a return value by <a href="function.imagetypes.html" class="function">imagetypes()</a>    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_JPEG</tt></b>      (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Used as a return value by <a href="function.imagetypes.html" class="function">imagetypes()</a>    </span>    <blockquote><p><b class="note">Note</b>:            This constant has the same value as <b><tt>IMG_JPG</tt></b>     <br />    </p></blockquote>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_PNG</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Used as a return value by <a href="function.imagetypes.html" class="function">imagetypes()</a>    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_WBMP</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Used as a return value by <a href="function.imagetypes.html" class="function">imagetypes()</a>    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_XPM</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Used as a return value by <a href="function.imagetypes.html" class="function">imagetypes()</a>    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_COLOR_TILED</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Special color option which can be used in stead of color allocated with     <a href="function.imagecolorallocate.html" class="function">imagecolorallocate()</a> or     <a href="function.imagecolorallocatealpha.html" class="function">imagecolorallocatealpha()</a>    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_COLOR_STYLED</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Special color option which can be used in stead of color allocated with     <a href="function.imagecolorallocate.html" class="function">imagecolorallocate()</a> or     <a href="function.imagecolorallocatealpha.html" class="function">imagecolorallocatealpha()</a>    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_COLOR_BRUSHED</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Special color option which can be used in stead of color allocated with     <a href="function.imagecolorallocate.html" class="function">imagecolorallocate()</a> or     <a href="function.imagecolorallocatealpha.html" class="function">imagecolorallocatealpha()</a>    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_COLOR_STYLEDBRUSHED</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Special color option which can be used in stead of color allocated with     <a href="function.imagecolorallocate.html" class="function">imagecolorallocate()</a> or     <a href="function.imagecolorallocatealpha.html" class="function">imagecolorallocatealpha()</a>    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_COLOR_TRANSPARENT</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Special color option which can be used in stead of color allocated with     <a href="function.imagecolorallocate.html" class="function">imagecolorallocate()</a> or     <a href="function.imagecolorallocatealpha.html" class="function">imagecolorallocatealpha()</a>    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_ARC_ROUNDED</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     A style constant used by the <a href="function.imagefilledarc.html" class="function">imagefilledarc()</a> function.    </span>    <blockquote><p><b class="note">Note</b>:            This constant has the same value as <b><tt>IMG_ARC_PIE</tt></b>     <br />    </p></blockquote>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_ARC_PIE</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     A style constant used by the <a href="function.imagefilledarc.html" class="function">imagefilledarc()</a> function.    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_ARC_CHORD</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     A style constant used by the <a href="function.imagefilledarc.html" class="function">imagefilledarc()</a> function.    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_ARC_NOFILL</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     A style constant used by the <a href="function.imagefilledarc.html" class="function">imagefilledarc()</a> function.    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_ARC_EDGED</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     A style constant used by the <a href="function.imagefilledarc.html" class="function">imagefilledarc()</a> function.    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_GD2_RAW</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     A type constant used by the <a href="function.imagegd2.html" class="function">imagegd2()</a> function.    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_GD2_COMPRESSED</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     A type constant used by the <a href="function.imagegd2.html" class="function">imagegd2()</a> function.    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_EFFECT_REPLACE</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Alpha blending effect used by the <a href="function.imagelayereffect.html" class="function">imagelayereffect()</a> function.    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_EFFECT_ALPHABLEND</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Alpha blending effect used by the <a href="function.imagelayereffect.html" class="function">imagelayereffect()</a> function.    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_EFFECT_NORMAL</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Alpha blending effect used by the <a href="function.imagelayereffect.html" class="function">imagelayereffect()</a> function.    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_EFFECT_OVERLAY</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Alpha blending effect used by the <a href="function.imagelayereffect.html" class="function">imagelayereffect()</a> function.    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_FILTER_NEGATE</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Special GD filter used by the <a href="function.imagefilter.html" class="function">imagefilter()</a> function.    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_FILTER_GRAYSCALE</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Special GD filter used by the <a href="function.imagefilter.html" class="function">imagefilter()</a> function.    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_FILTER_BRIGHTNESS</tt></b>     (<a href="language.types.integer.html" class="type integer">integer</a>)   </span>   <dd>    <span class="simpara">     Special GD filter used by the <a href="function.imagefilter.html" class="function">imagefilter()</a> function.    </span>   </dd>  </dt>  <dt>   <span class="term">    <b><tt>IMG_FILTER_CONTRAST</tt></b> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -