You are here

function imageapi_image_desaturate in ImageAPI 5

Same name and namespace in other branches
  1. 6 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 342
An ImageAPI supporting mulitple image toolkits. Image toolkits are implemented as modules. Images are objects, but have no methods

Code

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