You are here

public function ImageInterface::desaturate in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Image/ImageInterface.php \Drupal\Core\Image\ImageInterface::desaturate()
  2. 9 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.

File

core/lib/Drupal/Core/Image/ImageInterface.php, line 223

Class

ImageInterface
Provides an interface for image objects.

Namespace

Drupal\Core\Image

Code

public function desaturate();