<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.imagick.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'imagick.compareimagelayers.php',
    1 => 'Imagick::compareImageLayers',
    2 => 'Returns the maximum bounding region between images',
  ),
  'up' => 
  array (
    0 => 'class.imagick.php',
    1 => 'Imagick',
  ),
  'prev' => 
  array (
    0 => 'imagick.compareimagechannels.php',
    1 => 'Imagick::compareImageChannels',
  ),
  'next' => 
  array (
    0 => 'imagick.compareimages.php',
    1 => 'Imagick::compareImages',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/imagick/imagick/compareimagelayers.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="imagick.compareimagelayers" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Imagick::compareImageLayers</h1>
  <p class="verinfo">(PECL imagick 2, PECL imagick 3)</p><p class="refpurpose"><span class="refname">Imagick::compareImageLayers</span> &mdash; <span class="dc-title">Returns the maximum bounding region between images</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-imagick.compareimagelayers-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Imagick::compareImageLayers</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$method</code></span>): <span class="type"><a href="class.imagick.php" class="type Imagick">Imagick</a></span></div>


  <p class="para rdfs-comment">
   Compares each image with the next in a sequence and returns the
   maximum bounding region of any pixel differences it discovers.
   Цей метод доступний, якщо Imagick зібраний з ImageMagick версії 6.2.9 або новішою.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-imagick.compareimagelayers-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">method</code></dt>
     <dd>
      <p class="para">
       One of the <a href="imagick.constants.php#imagick.constants.layermethod" class="link">layer method constants</a>.
      </p>
     </dd>
    
   </dl>
  </p>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-imagick.compareimagelayers-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Повертає <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> в разі успіху.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-imagick.compareimagelayers-errors">
  <h3 class="title">Помилки/виключення</h3>
  <p class="para">
   Кидає ImagickException в разі помилки.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-imagick.compareimagelayers-examples">
  <h3 class="title">Приклади</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Приклад #1 Using <span class="function"><strong>Imagick::compareImageLayers()</strong></span></strong></p>
    <div class="example-contents"><p>
      Comparing image layers
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">/* create new imagick object */<br /></span><span style="color: #0000BB">$im </span><span style="color: #007700">= new </span><span style="color: #0000BB">Imagick</span><span style="color: #007700">(</span><span style="color: #DD0000">"test.gif"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/* optimize the image layers */<br /></span><span style="color: #0000BB">$result </span><span style="color: #007700">= </span><span style="color: #0000BB">$im</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">compareImageLayers</span><span style="color: #007700">(</span><span style="color: #0000BB">imagick</span><span style="color: #007700">::</span><span style="color: #0000BB">LAYERMETHOD_COALESCE</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/* work on the $result */<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-imagick.compareimagelayers-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="imagick.optimizeimagelayers.php" class="function" rel="rdfs-seeAlso">Imagick::optimizeImageLayers()</a> - Removes repeated portions of images to optimize</span></li>
    <li><span class="function"><a href="imagick.writeimages.php" class="function" rel="rdfs-seeAlso">Imagick::writeImages()</a> - Writes an image or image sequence</span></li>
    <li><span class="function"><a href="imagick.writeimage.php" class="function" rel="rdfs-seeAlso">Imagick::writeImage()</a> - Writes an image to the specified filename</span></li>
   </ul>
  </p>
 </div>


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