<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.image.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.imagesetinterpolation.php',
    1 => 'imagesetinterpolation',
    2 => '補間方法を設定する',
  ),
  'up' => 
  array (
    0 => 'ref.image.php',
    1 => 'GD および Image 関数',
  ),
  'prev' => 
  array (
    0 => 'function.imagesetclip.php',
    1 => 'imagesetclip',
  ),
  'next' => 
  array (
    0 => 'function.imagesetpixel.php',
    1 => 'imagesetpixel',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/image/functions/imagesetinterpolation.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.imagesetinterpolation" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">imagesetinterpolation</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">imagesetinterpolation</span> &mdash; <span class="dc-title">補間方法を設定する</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.imagesetinterpolation-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>imagesetinterpolation</strong></span>(<span class="methodparam"><span class="type"><a href="class.gdimage.php" class="type GdImage">GdImage</a></span> <code class="parameter">$image</code></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 class="initializer"> = <strong><code><a href="image.constants.php#constant.img-bilinear-fixed">IMG_BILINEAR_FIXED</a></code></strong></span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   補間方法を設定します。これは、<span class="function"><a href="function.imagerotate.php" class="function">imagerotate()</a></span> など GD のさまざまな関数のレンダリングに影響を及ぼします。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.imagesetinterpolation-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    <dt><code class="parameter">image</code></dt><dd><p class="para"><span class="function"><a href="function.imagecreatetruecolor.php" class="function">imagecreatetruecolor()</a></span>のような画像作成関数が返す <span class="classname"><a href="class.gdimage.php" class="classname">GdImage</a></span> オブジェクト。</p></dd>
    
     <dt><code class="parameter">method</code></dt>
     <dd>
      <p class="para">
       補間方法。次のいずれかで指定します。
       <ul class="itemizedlist">
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-bell">IMG_BELL</a></code></strong>: Bell フィルター。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-bessel">IMG_BESSEL</a></code></strong>: Bessel フィルター。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-bicubic">IMG_BICUBIC</a></code></strong>: 双三次補間。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-bicubic-fixed">IMG_BICUBIC_FIXED</a></code></strong>: 双三次補間の固定小数点実装。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-bilinear-fixed">IMG_BILINEAR_FIXED</a></code></strong>: 双直線補間の固定小数点実装 (<code class="literal">デフォルト (画像作成時も含む)</code>)。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-blackman">IMG_BLACKMAN</a></code></strong>: Blackman ウィンドウ関数。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-box">IMG_BOX</a></code></strong>: Box blur フィルター。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-bspline">IMG_BSPLINE</a></code></strong>: スプライン補間。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-catmullrom">IMG_CATMULLROM</a></code></strong>: 三次元エルミートスプライン補間。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-gaussian">IMG_GAUSSIAN</a></code></strong>: ガウス関数。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-generalized-cubic">IMG_GENERALIZED_CUBIC</a></code></strong>: 汎用三次元スプラインフラクタル補間。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-hermite">IMG_HERMITE</a></code></strong>: エルミート補間。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-hamming">IMG_HAMMING</a></code></strong>: ハミングフィルター。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-hanning">IMG_HANNING</a></code></strong>: ハニングフィルター。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-mitchell">IMG_MITCHELL</a></code></strong>: Mitchell フィルター。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-power">IMG_POWER</a></code></strong>: Power 補間。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-quadratic">IMG_QUADRATIC</a></code></strong>: 逆二次補間。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-sinc">IMG_SINC</a></code></strong>: Sinc 関数。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-nearest-neighbour">IMG_NEAREST_NEIGHBOUR</a></code></strong>: 最近接補間。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-weighted4">IMG_WEIGHTED4</a></code></strong>: 重み付きフィルター。
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="image.constants.php#constant.img-triangle">IMG_TRIANGLE</a></code></strong>: 三角補間。
         </span>
        </li>
       </ul>
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.imagesetinterpolation-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   成功した場合に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> を、失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.imagesetinterpolation-changelog">
  <h3 class="title">変更履歴</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>バージョン</th>
      <th>説明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.0.0</td>
 <td>
  <code class="parameter">image</code> は、
  <span class="classname"><a href="class.gdimage.php" class="classname">GdImage</a></span>
  クラスのインスタンスを期待するようになりました。
  これより前のバージョンでは、有効な <code class="literal">gd</code> <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> が期待されていました。
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.imagesetinterpolation-examples">
  <h3 class="title">例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>例1 <span class="function"><strong>imagesetinterpolation()</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: #FF8000">// 画像を読み込みます<br /></span><span style="color: #0000BB">$im </span><span style="color: #007700">= </span><span style="color: #0000BB">imagecreate</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">);<br /><br /></span><span style="color: #FF8000">// デフォルトの補間方法は IMG_BILINEAR_FIXED ですが、これを<br />// 'Mitchell' フィルターに変更します<br /></span><span style="color: #0000BB">imagesetinterpolation</span><span style="color: #007700">(</span><span style="color: #0000BB">$im</span><span style="color: #007700">, </span><span style="color: #0000BB">IMG_MITCHELL</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// $im の作業を続けます<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

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


 <div class="refsect1 notes" id="refsect1-function.imagesetinterpolation-notes">
  <h3 class="title">注意</h3>
  <p class="para">
   補間方法を変更すると、これらの関数のレンダリングに影響を及ぼします。

   <ul class="itemizedlist">
    <li class="listitem">
     <span class="simpara">
      <span class="function"><a href="function.imageaffine.php" class="function">imageaffine()</a></span>
     </span>
    </li>
    <li class="listitem">
     <span class="simpara">
      <span class="function"><a href="function.imagerotate.php" class="function">imagerotate()</a></span>
     </span>
    </li>
   </ul>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.imagesetinterpolation-seealso">
  <h3 class="title">参考</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.imagegetinterpolation.php" class="function" rel="rdfs-seeAlso">imagegetinterpolation()</a> - 補間方法を取得する</span></li>
  </ul>
 </div>


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