function image_imagick_colorshift in Imagick 7
Colorshifts an image
Parameters
$image: An image object. The $image->resource value will be modified by this call.
$data: Array of data passed through by the form.
Return value
TRUE or FALSE, based on success.
File
- effects/
imagick.colorshift.inc, line 13
Code
function image_imagick_colorshift(stdClass $image, $color) {
$color = empty($color) ? 'none' : $color;
return $image->resource
->colorizeImage(new ImagickPixel($color), 1);
}