<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.gmagick.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'gmagick.quantizeimages.php',
    1 => 'Gmagick::quantizeimages',
    2 => 'The quantizeimages purpose',
  ),
  'up' => 
  array (
    0 => 'class.gmagick.php',
    1 => 'Gmagick',
  ),
  'prev' => 
  array (
    0 => 'gmagick.quantizeimage.php',
    1 => 'Gmagick::quantizeimage',
  ),
  'next' => 
  array (
    0 => 'gmagick.queryfontmetrics.php',
    1 => 'Gmagick::queryfontmetrics',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/gmagick/gmagick/quantizeimages.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="gmagick.quantizeimages" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Gmagick::quantizeimages</h1>
  <p class="verinfo">(PECL gmagick &gt;= Unknown)</p><p class="refpurpose"><span class="refname">Gmagick::quantizeimages</span> &mdash; <span class="dc-title">The quantizeimages purpose</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-gmagick.quantizeimages-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Gmagick::quantizeimages</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$numColors</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$colorspace</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$treeDepth</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$dither</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$measureError</code></span><br>): <span class="type"><a href="class.gmagick.php" class="type Gmagick">Gmagick</a></span></div>

  <p class="simpara">
   Analyzes the colors within a sequence of images and chooses a fixed number of
   colors to represent the image. The goal of the algorithm is to minimize the
   color difference between the input and output image while minimizing the processing time.
  </p>



 </div>


 <div class="refsect1 parameters" id="refsect1-gmagick.quantizeimages-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   
    <dt><code class="parameter">numColors</code></dt>
    <dd>
     <span class="simpara">
      The number of colors.
     </span>
    </dd>
   
   
    <dt><code class="parameter">colorspace</code></dt>
    <dd>
     <span class="simpara">
      Perform color reduction in this colorspace, typically RGBColorspace.
     </span>
    </dd>
   
   
    <dt><code class="parameter">treeDepth</code></dt>
    <dd>
     <span class="simpara">
      Normally, this integer value is zero or one. A zero or one tells Quantize
to choose a optimal tree depth of Log4(number_colors).% A tree of this depth generally
allows the best representation of the reference image with the least amount of memory
and the fastest computational speed. In some cases, such as an image with low color
dispersion (a few number of colors), a value other than Log4(number_colors) is required.
To expand the color tree completely, use a value of 8.
     </span>
    </dd>
   
   
    <dt><code class="parameter">dither</code></dt>
    <dd>
     <span class="simpara">
      A value other than zero distributes the difference between an original image and the corresponding color reduced algorithm to neighboring pixels along a Hilbert curve.
     </span>
    </dd>
   
   
    <dt><code class="parameter">measureError</code></dt>
    <dd>
     <span class="simpara">
      A value other than zero measures the difference between the original and quantized images. This difference is the total quantization error. The error is computed by summing over all pixels in an image the distance squared in RGB space between each reference pixel value and its quantized value.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-gmagick.quantizeimages-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="simpara">
   The Gmagick object on success
  </p>
 </div>


  <div class="refsect1 errors" id="refsect1-gmagick.quantizeimages-errors">
  <h3 class="title">Fehler/Exceptions</h3>
  <p class="simpara">
   Wirft bei einem Fehler eine
<span class="classname"><strong class="classname">GmagickException</strong></span>.
  </p>
 </div>

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