function Image::desaturate
Converts an image to grayscale.
Return value
bool TRUE on success, FALSE on failure.
Overrides ImageInterface::desaturate
File
-
core/
lib/ Drupal/ Core/ Image/ Image.php, line 169
Class
- Image
- Defines an image object to represent an image file.
Namespace
Drupal\Core\ImageCode
public function desaturate() {
return $this->apply('desaturate', []);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.