<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.image.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.imageaffinematrixget.php',
    1 => 'imageaffinematrixget',
    2 => 'Get an affine transformation matrix',
  ),
  'up' => 
  array (
    0 => 'ref.image.php',
    1 => 'Функції GD та Image',
  ),
  'prev' => 
  array (
    0 => 'function.imageaffinematrixconcat.php',
    1 => 'imageaffinematrixconcat',
  ),
  'next' => 
  array (
    0 => 'function.imagealphablending.php',
    1 => 'imagealphablending',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/image/functions/imageaffinematrixget.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.imageaffinematrixget" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">imageaffinematrixget</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">imageaffinematrixget</span> &mdash; <span class="dc-title">Get an affine transformation matrix</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.imageaffinematrixget-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>imageaffinematrixget</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$type</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.float.php" class="type float">float</a></span></span> <code class="parameter">$options</code></span>): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Returns an affine transformation matrix.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.imageaffinematrixget-parameters">
  <h3 class="title">Параметри</h3>
  <dl>
   
    <dt><code class="parameter">type</code></dt>
    <dd>
     <p class="para">
      One of the <strong><code><a href="image.constants.php#constant.img-affine-translate">IMG_AFFINE_<span class="replaceable">*</span></a></code></strong> constants.
     </p>
    </dd>
   
   
    <dt><code class="parameter">options</code></dt>
    <dd>
     <p class="para">
      If <code class="parameter">type</code> is <strong><code><a href="image.constants.php#constant.img-affine-translate">IMG_AFFINE_TRANSLATE</a></code></strong>
      or <strong><code><a href="image.constants.php#constant.img-affine-scale">IMG_AFFINE_SCALE</a></code></strong>,
      <code class="parameter">options</code> has to be an <span class="type"><a href="language.types.array.php" class="type array">array</a></span> with keys <code class="literal">x</code>
      and <code class="literal">y</code>, both having <span class="type"><a href="language.types.float.php" class="type float">float</a></span> values.
     </p>
     <p class="para">
      If <code class="parameter">type</code> is <strong><code><a href="image.constants.php#constant.img-affine-rotate">IMG_AFFINE_ROTATE</a></code></strong>,
      <strong><code><a href="image.constants.php#constant.img-affine-shear-horizontal">IMG_AFFINE_SHEAR_HORIZONTAL</a></code></strong> or <strong><code><a href="image.constants.php#constant.img-affine-shear-vertical">IMG_AFFINE_SHEAR_VERTICAL</a></code></strong>,
      <code class="parameter">options</code> has to be a <span class="type"><a href="language.types.float.php" class="type float">float</a></span> specifying the angle.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.imageaffinematrixget-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   An affine transformation matrix (an array with keys
   <code class="literal">0</code> to <code class="literal">5</code> and float values)
    або <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> в разі помилки.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.imageaffinematrixget-examples">
  <h3 class="title">Приклади</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Приклад #1 <span class="function"><strong>imageaffinematrixget()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$matrix </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">=&gt; </span><span style="color: #0000BB">2</span><span style="color: #007700">, </span><span style="color: #DD0000">'y' </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">3</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">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Поданий вище приклад
виведе:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Array
(
    [0] =&gt; 1
    [1] =&gt; 0
    [2] =&gt; 0
    [3] =&gt; 1
    [4] =&gt; 2
    [5] =&gt; 3
)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.imageaffinematrixget-seealso">
  <h3 class="title">Прогляньте також</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.imageaffine.php" class="function" rel="rdfs-seeAlso">imageaffine()</a> - Return an image containing the affine transformed src image, using an optional clipping area</span></li>
   <li><span class="function"><a href="function.imageaffinematrixconcat.php" class="function" rel="rdfs-seeAlso">imageaffinematrixconcat()</a> - Concatenate two affine transformation matrices</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>