<?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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'imagick.levelimage.php',
    1 => 'Imagick::levelImage',
    2 => 'Ajuste les niveaux de l\'image',
  ),
  'up' => 
  array (
    0 => 'class.imagick.php',
    1 => 'Imagick',
  ),
  'prev' => 
  array (
    0 => 'imagick.labelimage.php',
    1 => 'Imagick::labelImage',
  ),
  'next' => 
  array (
    0 => 'imagick.linearstretchimage.php',
    1 => 'Imagick::linearStretchImage',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/imagick/imagick/levelimage.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="imagick.levelimage" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Imagick::levelImage</h1>
  <p class="verinfo">(PECL imagick 2, PECL imagick 3)</p><p class="refpurpose"><span class="refname">Imagick::levelImage</span> &mdash; <span class="dc-title">Ajuste les niveaux de l&#039;image</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-imagick.levelimage-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Imagick::levelImage</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.float.php" class="type float">float</a></span> <code class="parameter">$blackPoint</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.float.php" class="type float">float</a></span> <code class="parameter">$gamma</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.float.php" class="type float">float</a></span> <code class="parameter">$whitePoint</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">$channel</code><span class="initializer"> = Imagick::CHANNEL_DEFAULT</span></span><br>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Ajuste les niveaux d&#039;une image en modifiant les couleurs qui 
   sont entre deux couleurs données. Les paramètres représentent
   le noir, le gris et le blanc. Le noir est la couleur la plus
   sombre dans l&#039;image. Les couleurs qui sont plus sombres que
   la couleur noire sont alors mises à zéro. La couleur grise
   spécifie une correction gamma à appliquer à l&#039;image. 
   La couleur blanche spécifie la couleur la plus claire.
   Les couleurs plus claires sont alors mises à l&#039;intensité
   maximale.
  </p>
 </div>

 
 <div class="refsect1 parameters" id="refsect1-imagick.levelimage-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">blackPoint</code></dt>
     <dd>
      <p class="para">
       Le point noir de l&#039;image
      </p>
     </dd>
    
    
     <dt><code class="parameter">gamma</code></dt>
     <dd>
      <p class="para">
       La correction gamma
      </p>
     </dd>
    
    
     <dt><code class="parameter">whitePoint</code></dt>
     <dd>
      <p class="para">
       Le point blanc de l&#039;image
      </p>
     </dd>
    
    
     <dt><code class="parameter">channel</code></dt>
     <dd>
      <p class="para">
       Fournit une constante de canal valide pour le mode de canal.
       Pour utiliser plus d&#039;un canal, combinez les constantes de type
       de canal en utilisant les opérateurs de bits. Se reporter à la liste des
       <a href="imagick.constants.php#imagick.constants.channel" class="link">constantes de canal</a>.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-imagick.levelimage-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Retourne <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> en cas de succès.
  </p>
 </div>

 
 <div class="refsect1 errors" id="refsect1-imagick.levelimage-errors">
  <h3 class="title">Erreurs / Exceptions</h3>
  <p class="para">
   Lance une exception <span class="classname"><a href="class.imagickexception.php" class="classname">ImagickException</a></span> si une erreur survient.
  </p>
 </div>

 
 <div class="refsect1 examples" id="refsect1-imagick.levelimage-examples">
  <h3 class="title">Exemples</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Exemple #1 Exemple avec <span class="function"><strong>Imagick::levelImage()</strong></span></strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">function </span><span style="color: #0000BB">levelImage</span><span style="color: #007700">(</span><span style="color: #0000BB">$blackPoint</span><span style="color: #007700">, </span><span style="color: #0000BB">$gamma</span><span style="color: #007700">, </span><span style="color: #0000BB">$whitePoint</span><span style="color: #007700">) {<br />    </span><span style="color: #0000BB">$imagick </span><span style="color: #007700">= new </span><span style="color: #0000BB">\Imagick</span><span style="color: #007700">();<br />    </span><span style="color: #0000BB">$imagick</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">newPseudoimage</span><span style="color: #007700">(</span><span style="color: #0000BB">500</span><span style="color: #007700">, </span><span style="color: #0000BB">500</span><span style="color: #007700">, </span><span style="color: #DD0000">'gradient:black-white'</span><span style="color: #007700">);<br /><br />    </span><span style="color: #0000BB">$imagick</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setFormat</span><span style="color: #007700">(</span><span style="color: #DD0000">'png'</span><span style="color: #007700">);<br />    </span><span style="color: #0000BB">$quantum </span><span style="color: #007700">= </span><span style="color: #0000BB">$imagick</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getQuantum</span><span style="color: #007700">();<br />    </span><span style="color: #0000BB">$imagick</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">levelImage</span><span style="color: #007700">(</span><span style="color: #0000BB">$blackPoint </span><span style="color: #007700">/ </span><span style="color: #0000BB">100 </span><span style="color: #007700">, </span><span style="color: #0000BB">$gamma</span><span style="color: #007700">, </span><span style="color: #0000BB">$quantum </span><span style="color: #007700">* </span><span style="color: #0000BB">$whitePoint </span><span style="color: #007700">/ </span><span style="color: #0000BB">100</span><span style="color: #007700">);<br /><br />    </span><span style="color: #0000BB">header</span><span style="color: #007700">(</span><span style="color: #DD0000">"Content-Type: image/png"</span><span style="color: #007700">);<br />    echo </span><span style="color: #0000BB">$imagick</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getImageBlob</span><span style="color: #007700">();<br />}<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
     </div>

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

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