array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'imagick.blueshiftimage.php', 1 => 'Imagick::blueShiftImage', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.blackthresholdimage.php', 1 => 'Imagick::blackThresholdImage', ), 'next' => array ( 0 => 'imagick.blurimage.php', 1 => 'Imagick::blurImage', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/blueshiftimage.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL imagick 3 >= 3.3.0)
Imagick::blueShiftImage — Mutes the colors of the image
Mutes the colors of the image to simulate a scene at nighttime in the moonlight.
factor
Devuelve true
en caso de éxito.
Ejemplo #1 Imagick::blueShiftImage()
<?php
function blueShiftImage($imagePath, $blueShift) {
$imagick = new \Imagick(realpath($imagePath));
$imagick->blueShiftImage($blueShift);
header("Content-Type: image/jpg");
echo $imagick->getImageBlob();
}
?>