You are here

imagick.inverse.inc in Imagick 7

File

effects/imagick.inverse.inc
View source
<?php

/**
 * Converts the image to a negative form
 *
 * @param $image
 *   An image object. The $image->resource value will be modified by this call.
 * @param $data
 *   Array of data passed through by the form.
 * @return
 *   TRUE or FALSE, based on success.
 */
function image_imagick_inverse(stdClass $image, $data = array()) {
  return $image->resource
    ->negateImage(FALSE);
}

/**
 * Implements the imagick inverse effect.
 *
 * @param $image
 *   An image object
 * @param array $data
 *   The data passed from the form
 */
function imagick_inverse($image, $data = array()) {
  image_toolkit_invoke('inverse', $image, $data);
}

Functions

Namesort descending Description
image_imagick_inverse Converts the image to a negative form
imagick_inverse Implements the imagick inverse effect.