function.ps-get-value.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 487 行
HTML
487 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Gets certain values</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="function.ps-get-parameter.html">ps_get_parameter</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.ps-hyphenate.html">ps_hyphenate</a></div> <div class="up"><a href="ref.ps.html">PS Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.ps-get-value" class="refentry"> <div class="refnamediv"> <h1 class="refname">ps_get_value</h1> <p class="verinfo">(PECL ps:1.1.0-1.3.5)</p><p class="refpurpose"><span class="refname">ps_get_value</span> — <span class="dc-title">Gets certain values</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">float</span> <span class="methodname"><b><b>ps_get_value</b></b></span> ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$psdoc</tt></span> , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$name</tt></span> [, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$modifier</tt></span> ] )</div> <p class="para rdfs-comment">Gets several values which were set by <a href="function.ps-set-value.html" class="function">ps_set_value()</a>. Values are by definition float values. </p> <p class="para"> The parameter <i><tt class="parameter">name</tt></i> can have the following values. </p> <p class="para"> <dl> <dt> <span class="term"><i>fontsize</i></span> <dd> <p class="para"> The size of the currently active font or the font whose identifier is passed in parameter <i><tt class="parameter">modifier</tt></i>. </p> </dd> </dt> <dt> <span class="term"><i>font</i></span> <dd> <p class="para"> The currently active font itself. </p> </dd> </dt> <dt> <span class="term"><i>imagewidth</i></span> <dd> <p class="para"> The width of the image whose id is passed in the parameter <i><tt class="parameter">modifier</tt></i>. </p> </dd> </dt> <dt> <span class="term"><i>imageheight</i></span> <dd> <p class="para"> The height of the image whose id is passed in the parameter <i><tt class="parameter">modifier</tt></i>. </p> </dd> </dt> <dt> <span class="term"><i>capheight</i></span> <dd> <p class="para"> The height of a capital M in the currently active font or the font whose identifier is passed in parameter <i><tt class="parameter">modifier</tt></i>. </p> </dd> </dt> <dt> <span class="term"><i>ascender</i></span> <dd> <p class="para"> The ascender of the currently active font or the font whose identifier is passed in parameter <i><tt class="parameter">modifier</tt></i>. </p> </dd> </dt> <dt> <span class="term"><i>descender</i></span> <dd> <p class="para"> The descender of the currently active font or the font whose identifier is passed in parameter <i><tt class="parameter">modifier</tt></i>. </p> </dd> </dt> <dt> <span class="term"><i>italicangle</i></span> <dd> <p class="para"> The italicangle of the currently active font or the font whose identifier is passed in parameter <i><tt class="parameter">modifier</tt></i>. </p> </dd> </dt> <dt> <span class="term"><i>underlineposition</i></span> <dd> <p class="para"> The underlineposition of the currently active font or the font whose identifier is passed in parameter <i><tt class="parameter">modifier</tt></i>. </p> </dd> </dt> <dt> <span class="term"><i>underlinethickness</i></span> <dd> <p class="para"> The underlinethickness of the currently active font or the font whose identifier is passed in parameter <i><tt class="parameter">modifier</tt></i>. </p> </dd> </dt> <dt> <span class="term"><i>textx</i></span> <dd> <p class="para"> The current x-position for text output. </p> </dd> </dt> <dt> <span class="term"><i>texty</i></span> <dd> <p class="para"> The current y-position for text output. </p> </dd> </dt> <dt> <span class="term"><i>textrendering</i></span> <dd> <p class="para"> The current mode for text rendering. </p> </dd> </dt> <dt> <span class="term"><i>textrise</i></span> <dd> <p class="para"> The space by which text is risen above the base line. </p> </dd> </dt> <dt> <span class="term"><i>leading</i></span> <dd> <p class="para"> The distance between text lines in points. </p> </dd> </dt> <dt> <span class="term"><i>wordspacing</i></span> <dd> <p class="para"> The space between words as a multiple of the width of a space char. </p> </dd> </dt> <dt> <span class="term"><i>charspacing</i></span> <dd> <p class="para"> The space between chars. If charspacing is != 0.0 ligatures will always be dissolved. </p> </dd> </dt> <dt> <span class="term"><i>hyphenminchars</i></span> <dd> <p class="para"> Minimum number of chars hyphenated at the end of a word. </p> </dd> </dt> <dt> <span class="term"><i>parindent</i></span> <dd> <p class="para"> Indention of the first n line in a paragraph. </p> </dd> </dt> <dt> <span class="term"><i>numindentlines</i></span> <dd> <p class="para"> Number of line in a paragraph to indent if parindent != 0.0. </p> </dd> </dt> <dt> <span class="term"><i>parskip</i></span> <dd> <p class="para"> Distance between paragraphs. </p> </dd> </dt> <dt> <span class="term"><i>linenumberspace</i></span> <dd> <p class="para"> Overall space in front of each line for the line number. </p> </dd> </dt> <dt> <span class="term"><i>linenumbersep</i></span> <dd> <p class="para"> Space between the line and the line number. </p> </dd> </dt> <dt> <span class="term"><i>major</i></span> <dd> <p class="para"> The major version number of pslib. </p> </dd> </dt> <dt> <span class="term"><i>minor</i></span> <dd> <p class="para"> The minor version number of pslib. </p> </dd> </dt> <dt> <span class="term"><i>subminor</i>, <i>revision</i></span> <dd> <p class="para"> The subminor version number of pslib. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">psdoc</tt></i></span> <dd> <p class="para"> Resource identifier of the postscript file as returned by <a href="function.ps-new.html" class="function">ps_new()</a>. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">name</tt></i></span> <dd> <p class="para"> Name of the value. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">modifier</tt></i></span> <dd> <p class="para"> The parameter <i><tt class="parameter">modifier</tt></i> specifies the resource for which the value is to be retrieved. This can be the id of a font or an image. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns the value of the parameter or <b><tt>FALSE</tt></b>. </p> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.ps-set-value.html" class="function" rel="rdfs-seeAlso">ps_set_value()</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.ps-get-parameter.html">ps_get_parameter</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.ps-hyphenate.html">ps_hyphenate</a></div> <div class="up"><a href="ref.ps.html">PS Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?