You are here

function image_imagick_noise in Imagick 7

Adds noise to an image

Parameters

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

$type: The type of noise.

Return value

TRUE or FALSE, based on success.

File

effects/imagick.noise.inc, line 13

Code

function image_imagick_noise(stdClass $image, $type) {
  return $image->resource
    ->addNoiseImage($type);
}