Simple example :
<?php
$image = new Imagick('test.jpg');
$CMYK_color_model = array(0,100,0,0);
$image->recolorImage($CMYK_color_model) ;
header('Content-type: image/jpg');
echo $image
?>
Imagick::recolorImage
(No version information available, might only be in SVN)
Imagick::recolorImage — Recolors image
Opis
bool Imagick::recolorImage
( array
$matrix
)Translate, scale, shear, or rotate image colors. This method supports variable sized matrices but normally 5x5 matrix is used for RGBA and 6x6 is used for CMYK. The last row should contain the normalized values. Ta metoda jest dostępna, jeśli rozszerzenie Imagick zostało skompilowane z ImageMagick w wersji 6.3.6 lub nowszej.
Parametry
-
matrix -
The matrix containing the color values
Zwracane wartości
Zwraca TRUE w przypadku sukcesu.
softmixt at gmail dot com ¶
1 month ago
