public function Image::desaturate in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Image/Image.php \Drupal\Core\Image\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', []);
}