imagick.inverse.inc in Imagick 7
File
effects/imagick.inverse.incView 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
Name | Description |
---|---|
image_imagick_inverse | Converts the image to a negative form |
imagick_inverse | Implements the imagick inverse effect. |