mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-10-10 16:33:23 +08:00
0.0.1
This commit is contained in:
434
docs/php/ps_get_value.html
Normal file
434
docs/php/ps_get_value.html
Normal file
@@ -0,0 +1,434 @@
|
||||
<!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>Gets certain values</title>
|
||||
</head>
|
||||
<body class="docs"><div id="layout">
|
||||
<div id="layout-content"><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)</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" id="refsect1-function.ps-get-value-description">
|
||||
<h3 class="title">说明</h3>
|
||||
<div class="methodsynopsis dc-description">
|
||||
<span class="methodname"><strong>ps_get_value</strong></span>
|
||||
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$psdoc</code></span>
|
||||
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
|
||||
[, <span class="methodparam"><span class="type">float</span> <code class="parameter">$modifier</code></span>
|
||||
] ) : <span class="type">float</span></div>
|
||||
|
||||
<p class="para rdfs-comment">Gets several values which were set by
|
||||
<span class="function"><a href="ps_set_value.html" class="function">ps_set_value()</a></span>. Values are by definition float values.
|
||||
</p>
|
||||
<p class="para">
|
||||
The parameter <code class="parameter">name</code> can have the following values.
|
||||
</p>
|
||||
<p class="para">
|
||||
<dl>
|
||||
|
||||
|
||||
<dt>
|
||||
<em>fontsize</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The size of the currently active font or the font whose
|
||||
identifier is passed in parameter <code class="parameter">modifier</code>.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>font</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The currently active font itself.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>imagewidth</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The width of the image whose id is passed in the parameter
|
||||
<code class="parameter">modifier</code>.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>imageheight</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The height of the image whose id is passed in the parameter
|
||||
<code class="parameter">modifier</code>.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>capheight</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The height of a capital M in the currently active font or the font
|
||||
whose identifier is passed in parameter
|
||||
<code class="parameter">modifier</code>.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>ascender</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The ascender of the currently active font or the font
|
||||
whose identifier is passed in parameter
|
||||
<code class="parameter">modifier</code>.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>descender</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The descender of the currently active font or the font
|
||||
whose identifier is passed in parameter
|
||||
<code class="parameter">modifier</code>.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>italicangle</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The italicangle of the currently active font or the font
|
||||
whose identifier is passed in parameter
|
||||
<code class="parameter">modifier</code>.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>underlineposition</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The underlineposition of the currently active font or the font
|
||||
whose identifier is passed in parameter
|
||||
<code class="parameter">modifier</code>.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>underlinethickness</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The underlinethickness of the currently active font or the font
|
||||
whose identifier is passed in parameter
|
||||
<code class="parameter">modifier</code>.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>textx</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The current x-position for text output.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>texty</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The current y-position for text output.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>textrendering</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The current mode for text rendering.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>textrise</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The space by which text is risen above the base line.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>leading</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The distance between text lines in points.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>wordspacing</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The space between words as a multiple of the width of a space char.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>charspacing</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The space between chars. If charspacing is != 0.0 ligatures will
|
||||
always be dissolved.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>hyphenminchars</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
Minimum number of chars hyphenated at the end of a word.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>parindent</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
Indention of the first n line in a paragraph.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>numindentlines</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
Number of line in a paragraph to indent if parindent != 0.0.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>parskip</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
Distance between paragraphs.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>linenumberspace</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
Overall space in front of each line for the line number.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>linenumbersep</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
Space between the line and the line number.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>major</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The major version number of pslib.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>minor</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The minor version number of pslib.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<em>subminor</em>, <em>revision</em></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The subminor version number of pslib.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 parameters" id="refsect1-function.ps-get-value-parameters">
|
||||
<h3 class="title">参数</h3>
|
||||
<p class="para">
|
||||
<dl>
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">psdoc</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
Resource identifier of the postscript file
|
||||
as returned by <span class="function"><a href="ps_new.html" class="function">ps_new()</a></span>.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">name</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
Name of the value.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
|
||||
<dt>
|
||||
<code class="parameter">modifier</code></dt>
|
||||
|
||||
<dd>
|
||||
|
||||
<p class="para">
|
||||
The parameter <code class="parameter">modifier</code> specifies the resource
|
||||
for which the value is to be retrieved. This can be the id of a font or
|
||||
an image.
|
||||
</p>
|
||||
</dd>
|
||||
|
||||
|
||||
</dl>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 returnvalues" id="refsect1-function.ps-get-value-returnvalues">
|
||||
<h3 class="title">返回值</h3>
|
||||
<p class="para">
|
||||
Returns the value of the parameter or <strong><code>FALSE</code></strong>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="refsect1 seealso" id="refsect1-function.ps-get-value-seealso">
|
||||
<h3 class="title">参见</h3>
|
||||
<p class="para">
|
||||
<ul class="simplelist">
|
||||
<li class="member"><span class="function"><a href="ps_set_value.html" class="function" rel="rdfs-seeAlso">ps_set_value()</a> - Sets certain values</span></li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div></div></div></body></html>
|
Reference in New Issue
Block a user