mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 13:57:03 +08:00
118 lines
5.5 KiB
HTML
118 lines
5.5 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>Concatenate two affine transformation matrices</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.imageaffinematrixconcat" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">imageaffinematrixconcat</h1>
|
|
<p class="verinfo">(PHP 5 >= 5.5.0, PHP 7)</p><p class="refpurpose"><span class="refname">imageaffinematrixconcat</span> — <span class="dc-title">Concatenate two affine transformation matrices</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.imageaffinematrixconcat-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>imageaffinematrixconcat</strong></span>
|
|
( <span class="methodparam"><span class="type">array</span> <code class="parameter">$m1</code></span>
|
|
, <span class="methodparam"><span class="type">array</span> <code class="parameter">$m2</code></span>
|
|
) : <span class="type">array</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
Returns the concatenation of two affine transformation matrices,
|
|
what is useful if multiple transformations should be applied to the same
|
|
image in one go.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.imageaffinematrixconcat-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">m1</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
An affine transformation matrix (an array with keys
|
|
<em>0</em> to <em>5</em> and float values).
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">m2</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
An affine transformation matrix (an array with keys
|
|
<em>0</em> to <em>5</em> and float values).
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.imageaffinematrixconcat-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
An affine transformation matrix (an array with keys
|
|
<em>0</em> to <em>5</em> and float values)
|
|
或者在失败时返回 <strong><code>FALSE</code></strong>.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 examples" id="refsect1-function.imageaffinematrixconcat-examples">
|
|
<h3 class="title">范例</h3>
|
|
<p class="para">
|
|
<div class="example" id="example-3653">
|
|
<p><strong>Example #1 <span class="function"><strong>imageaffinematrixconcat()</strong></span> example</strong></p>
|
|
<div class="example-contents">
|
|
<div class="phpcode"><pre><span style="color: #000000">
|
|
<span style="color: #0000BB"><?php<br />$m1 </span><span style="color: #007700">= </span><span style="color: #0000BB">imageaffinematrixget</span><span style="color: #007700">(</span><span style="color: #0000BB">IMG_AFFINE_TRANSLATE</span><span style="color: #007700">, array(</span><span style="color: #DD0000">'x' </span><span style="color: #007700">= </span><span style="color: #0000BB">2</span><span style="color: #007700">, </span><span style="color: #DD0000">'y' </span><span style="color: #007700">=> </span><span style="color: #0000BB">3</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">$m2 </span><span style="color: #007700">= </span><span style="color: #0000BB">imageaffinematrixget</span><span style="color: #007700">(</span><span style="color: #0000BB">IMG_AFFINE_SCALE</span><span style="color: #007700">, array(</span><span style="color: #DD0000">'x' </span><span style="color: #007700">= </span><span style="color: #0000BB">4</span><span style="color: #007700">, </span><span style="color: #DD0000">'y' </span><span style="color: #007700">=> </span><span style="color: #0000BB">5</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">$matrix </span><span style="color: #007700">= </span><span style="color: #0000BB">imageaffinematrixconcat</span><span style="color: #007700">(</span><span style="color: #0000BB">$m1</span><span style="color: #007700">, </span><span style="color: #0000BB">$m2</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$matrix</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
|
|
(
|
|
[0] => 4
|
|
[1] => 0
|
|
[2] => 0
|
|
[3] => 5
|
|
[4] => 8
|
|
[5] => 15
|
|
)
|
|
</pre></div>
|
|
</div>
|
|
</div>
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 seealso" id="refsect1-function.imageaffinematrixconcat-seealso">
|
|
<h3 class="title">参见</h3>
|
|
<p class="para">
|
|
<ul class="simplelist">
|
|
<li class="member"><span class="function"><a href="imageaffine.html" class="function" rel="rdfs-seeAlso">imageaffine()</a> - 返回经过仿射变换后的图像,剪切区域可选</span></li>
|
|
<li class="member"><span class="function"><a href="imageaffinematrixget.html" class="function" rel="rdfs-seeAlso">imageaffinematrixget()</a> - Get an affine transformation matrix</span></li>
|
|
</ul>
|
|
</p>
|
|
</div>
|
|
|
|
|
|
</div></div></div></body></html> |