PHP 5.6.0beta1 released

Imagick::recolorImage

(No version information available, might only be in Git)

Imagick::recolorImageRecolors image

Descrierea

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. Această metodă este disponibilă dacă Imagick a fost compilat cu ImageMagick de versiunea 6.3.6 sau ulterior.

Parametri

matrix

The matrix containing the color values

Valorile întoarse

Întoarce TRUE în caz de succes.

Vedeți de asemenea

add a note add a note

User Contributed Notes 1 note

up
0
softmixt at gmail dot com
11 months 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