You are here

function imageapi_image_desaturate in ImageAPI 6

Same name and namespace in other branches
  1. 5 imageapi.module \imageapi_image_desaturate()

Convert an image to grayscale.

Parameters

$image: An image object returned by imageapi_image_open().

Return value

TRUE or FALSE, based on success.

File

./imageapi.module, line 348
An ImageAPI supporting additional image plugins as modules. Images are treated as objects, and images are not written per manipulation as Drupal's core image handling works.

Code

function imageapi_image_desaturate(&$image) {
  return imageapi_toolkit_invoke('desaturate', $image);
}