function image_desaturate
image_desaturate(stdClass $image)
Converts an image to grayscale.
Parameters
$image: An image object returned by image_load().
Return value
TRUE on success, FALSE on failure.
See also
Related topics
File
- includes/image.inc, line 354
- API for manipulating images.
Code
function image_desaturate(stdClass $image) { return image_toolkit_invoke('desaturate', $image); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!image.inc/function/image_desaturate/7.x