You are here

function image_imagick_solarize in Imagick 7

Solarizes an image

Parameters

$image: An image object. The $image->resource value will be modified by this call.

$threshold: The threshold of the solarize effect.

Return value

TRUE or FALSE, based on success.

File

effects/imagick.solarize.inc, line 13

Code

function image_imagick_solarize(stdClass $image, $threshold) {
  return $image->resource
    ->solarizeImage($threshold);
}