Imagick::recolorImage

(Ingen versionsoplysninger tilgængelige, findes måske kun i SVN)

Imagick::recolorImageRecolors image

Beskrivelse

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. This method is available if Imagick has been compiled against ImageMagick version 6.3.6 or newer.

Parametre

matrix

The matrix containing the color values

Returnerings Værdier

Returns TRUE on success.

Se også

add a note add a note

User Contributed Notes 1 note

up
1
softmixt at gmail dot com
11 years ago
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
?>
To Top