Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ImageInterface.php

function 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
Converts an image to grayscale.

File

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

Class

ImageInterface
Provides an interface for image objects.

Namespace

Drupal\Core\Image

Code

public function desaturate();
RSS feed
Powered by Drupal