<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'imagick.remapimage.php',
    1 => 'Imagick::remapImage',
    2 => '画像の色を再配置する',
  ),
  'up' => 
  array (
    0 => 'class.imagick.php',
    1 => 'Imagick',
  ),
  'prev' => 
  array (
    0 => 'imagick.reducenoiseimage.php',
    1 => 'Imagick::reduceNoiseImage',
  ),
  'next' => 
  array (
    0 => 'imagick.removeimage.php',
    1 => 'Imagick::removeImage',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/imagick/imagick/remapimage.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="imagick.remapimage" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Imagick::remapImage</h1>
  <p class="verinfo">(PECL imagick 2 &gt;= 2.3.0, PECL imagick 3)</p><p class="refpurpose"><span class="refname">Imagick::remapImage</span> &mdash; <span class="dc-title">画像の色を再配置する</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-imagick.remapimage-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Imagick::remapImage</strong></span>(<span class="methodparam"><span class="type"><a href="class.imagick.php" class="type Imagick">Imagick</a></span> <code class="parameter">$replacement</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$DITHER</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   画像の色を、<code class="parameter">replacement</code> で定義したものに置き換えます。
   色の変換は、もっとも近い色で行われます。このメソッドは、ImageMagick バージョン 6.4.5 以降で Imagick をコンパイルした場合に使用可能です。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-imagick.remapimage-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">replacement</code></dt>
     <dd>
      <p class="para">
       置き換える色を含む Imagick オブジェクト。
      </p>
     </dd>
    
    
     <dt><code class="parameter">DITHER</code></dt>
     <dd>
      <p class="para">
       <a href="imagick.constants.php#imagick.constants.dithermethod" class="link">ディザメソッド定数</a>
       の一覧を参照ください。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-imagick.remapimage-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.remapimage-errors">
  <h3 class="title">エラー / 例外</h3>
  <p class="para">
   エラー時に ImagickException をスローします。
  </p>
 </div>

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