- drupal
- drupal7
| Versionen | |
| drupal7 |
image_desaturate(stdClass $image) |
Convert an image to grayscale.
see image_load()
Übergabeparameter
$image
An image object returned by image_load().
Rückgabewert
TRUE or FALSE, based on success.
See also
image_gd_desaturate()
Verwandte Themen
- Image toolkits
- Drupal's image toolkits provide an abstraction layer for common image file
manipulations like scaling, cropping, and rotating. The abstraction frees
module authors from the need to support multiple image libraries, and it
allows site…
Code
includes/image.inc, line 310
<?php
function image_desaturate(stdClass $image) {
return image_toolkit_invoke('desaturate', $image);
}
?>
Kommentare
Kommentar hinzufügen