You are here

function image_imagick_mirror in Imagick 7

Mirrors the 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.mirror.inc, line 13

Code

function image_imagick_mirror(stdClass $image, $flip, $flop) {
  if ($flip) {
    $image->resource
      ->flipImage();
  }
  if ($flop) {
    $image->resource
      ->flopImage();
  }
  return $image;
}