array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.imagesetinterpolation.php', 1 => 'imagesetinterpolation', ), 'up' => array ( 0 => 'ref.image.php', 1 => 'GD ve Görüntü İşlevleri', ), 'prev' => array ( 0 => 'function.imagesetclip.php', 1 => 'imagesetclip', ), 'next' => array ( 0 => 'function.imagesetpixel.php', 1 => 'imagesetpixel', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'tr', 'path' => 'reference/image/functions/imagesetinterpolation.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.5.0, PHP 7, PHP 8)
imagesetinterpolation — Ara değerleme yöntemini tanımlar
Ara değerleme yöntemini tanımlar. Atanan ara değerleme yöntemi imagerotate() gibi çeşitli GD işlevlerini etkiler.
görüntü
imagecreatetruecolor() gibi bir görüntü oluşturma işlevinden dönen bir GdImage nesnesi.
yöntem
Ara değerleme yöntemi şunlaredan biri olabilir:
IMG_BELL
: Çan süzgeci.
IMG_BESSEL
: Bessel süzgeci.
IMG_BICUBIC
: Çift kübik ara değerlemesi.
IMG_BICUBIC_FIXED
: Çift kübik ara değerlemesinin sabit nokta uygulaması.
IMG_BILINEAR_FIXED
: Çift doğrusal ara değerlemesinin sabit nokta uygulaması. (öntanımlıdır (ayrıca görüntü oluşturmada)
).
IMG_BLACKMAN
: Blackman pencere işlevi.
IMG_BOX
: Kutu bulanıklığı süzgeci.
IMG_BSPLINE
: Yivli ara değerleme.
IMG_CATMULLROM
: Kübik Hermit yivli ara değerleme.
IMG_GAUSSIAN
: Gauss işlevi.
IMG_GENERALIZED_CUBIC
: Genelleştirilmiş kübik yivli fraktal ara değerlemesi.
IMG_HERMITE
: Hermit ara değerlemesi.
IMG_HAMMING
: Abartma süzgeci.
IMG_HANNING
: Hanning süzgeci.
IMG_MITCHELL
: Mitchell süzgeci.
IMG_POWER
: Güç ara değerlemesi.
IMG_QUADRATIC
: İkinci dereceden ters ara değerleme.
IMG_SINC
: Sinc işlevi.
IMG_NEAREST_NEIGHBOUR
: En yakın komşu ara değerlemesi.
IMG_WEIGHTED4
: Ağırlıklandırma süzgeci.
IMG_TRIANGLE
: Üçgen ara değerlemesi.
Sürüm: | Açıklama |
---|---|
8.0.0 |
görüntü bağımsız değişkeninde artık
bir GdImage nesnesi aktarmak gerekiyor; evvelce
resource türünde geçerli bir gd değeri
gerekirdi.
|
Örnek 1 - imagesetinterpolation() örneği
<?php
// Görüntüyü yükle
$görüntü = imagecreate(500, 500);
// Öntanımlı ara değerleme: IMG_BILINEAR_FIXED
// 'Mitchell' süzgecine geç:
imagesetinterpolation($görüntü, IMG_MITCHELL);
// $görüntü ile çalışmaya devam...
?>
Ara değerleme yöntemini değiştirmek, işlem sırasında aşağıdaki işlevleri etkiler: