array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'imagick.fximage.php', 1 => 'Imagick::fxImage', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.functionimage.php', 1 => 'Imagick::functionImage', ), 'next' => array ( 0 => 'imagick.gammaimage.php', 1 => 'Imagick::gammaImage', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'tr', 'path' => 'reference/imagick/imagick/fximage.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL imagick 2, PECL imagick 3)
Imagick::fxImage — Bir ifadeyi görüntüdeki her piksele uygular
Belirtilen ifadeyi görüntüdeki her piksele uygular. Daha fazla bilgi için » Özel etkiler için Fx görüntü işleci sayfasına bakınız.
ifadeyi
Her piksele uygulanacak ifade.
kanal
Normalde kanal türü sabitlerinden biri, ancak bitsel işleçler kullanılarak birden fazla kanal belirtilebilir.
Başarı durumunda true
döner.
Hata durumunda bir ImagickException istisnası oluşur.
Örnek 1 - Imagick::fxImage() kullanımı
<?php
function fxImage() {
$imagick = new \Imagick();
$imagick->newPseudoImage(200, 200, "xc:white");
$fx = 'xx=i-w/2; yy=j-h/2; rr=hypot(xx,yy); (.5-rr/140)*1.2+.5';
$fxImage = $imagick->fxImage($fx);
header("Content-Type: image/png");
$fxImage->setimageformat('png');
echo $fxImage->getImageBlob();
}
?>