function ImageInterface::desaturate
Same name in other branches
- 9 core/lib/Drupal/Core/Image/ImageInterface.php \Drupal\Core\Image\ImageInterface::desaturate()
- 8.9.x core/lib/Drupal/Core/Image/ImageInterface.php \Drupal\Core\Image\ImageInterface::desaturate()
- 11.x core/lib/Drupal/Core/Image/ImageInterface.php \Drupal\Core\Image\ImageInterface::desaturate()
Converts an image to grayscale.
Return value
bool TRUE on success, FALSE on failure.
1 method overrides ImageInterface::desaturate()
- Image::desaturate in core/
lib/ Drupal/ Core/ Image/ Image.php
File
-
core/
lib/ Drupal/ Core/ Image/ ImageInterface.php, line 222
Class
- ImageInterface
- Provides an interface for image objects.
Namespace
Drupal\Core\ImageCode
public function desaturate();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.