public 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 170
Class
- Image
- Defines an image object to represent an image file.
Namespace
Drupal\Core\Image
Code
public function desaturate() { return $this->apply('desaturate', array()); }
Please login to continue.