<?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.gammaimage.php',
    1 => 'Imagick::gammaImage',
    2 => 'Applique une correction gamma &agrave; l\'image',
  ),
  'up' => 
  array (
    0 => 'class.imagick.php',
    1 => 'Imagick',
  ),
  'prev' => 
  array (
    0 => 'imagick.fximage.php',
    1 => 'Imagick::fxImage',
  ),
  'next' => 
  array (
    0 => 'imagick.gaussianblurimage.php',
    1 => 'Imagick::gaussianBlurImage',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/imagick/imagick/gammaimage.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="imagick.gammaimage" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Imagick::gammaImage</h1>
  <p class="verinfo">(PECL imagick 2, PECL imagick 3)</p><p class="refpurpose"><span class="refname">Imagick::gammaImage</span> &mdash; <span class="dc-title">Applique une correction gamma à l&#039;image</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-imagick.gammaimage-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Imagick::gammaImage</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.float.php" class="type float">float</a></span> <code class="parameter">$gamma</code></span>, <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>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Applique une correction gamma à l&#039;image. La même image est vue sur différents
   écrans vont avoir des différences de perceptions dans la représentation
   des intensités. Spécifier des corrections gamma individuelles pour
   les différentes couleurs, ou bien ajustez les trois corrections gamma 
   d&#039;un seul coup. Les valeurs typiques vont de 0.8 à 2.3.
  </p>
 </div>

 
 <div class="refsect1 parameters" id="refsect1-imagick.gammaimage-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">gamma</code></dt>
     <dd>
      <p class="para">
       La correction gamma. 
      </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.gammaimage-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.gammaimage-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.gammaimage-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::gammaImage()</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">gammaImage</span><span style="color: #007700">(</span><span style="color: #0000BB">$imagePath</span><span style="color: #007700">, </span><span style="color: #0000BB">$gamma</span><span style="color: #007700">, </span><span style="color: #0000BB">$channel</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">(</span><span style="color: #0000BB">realpath</span><span style="color: #007700">(</span><span style="color: #0000BB">$imagePath</span><span style="color: #007700">));<br />    </span><span style="color: #0000BB">$imagick</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">gammaImage</span><span style="color: #007700">(</span><span style="color: #0000BB">$gamma</span><span style="color: #007700">, </span><span style="color: #0000BB">$channel</span><span style="color: #007700">);<br />    </span><span style="color: #0000BB">header</span><span style="color: #007700">(</span><span style="color: #DD0000">"Content-Type: image/jpg"</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); ?>