Imagine\Filter\Advanced\Grayscale | Imagine API

- Classes
- Namespaces
- Interfaces
- Index

Imagine API
Class

# Imagine\Filter\Advanced\Grayscale

class Grayscale extends OnPixelBased implements FilterInterface

The Grayscale filter calculates the gray-value based on RGB.

## Methods

| __construct() |
ImageInterface | apply(ImageInterface $image) Applies scheduled transformation to ImageInterface instance Returns processed ImageInterface instance | from OnPixelBased

## Details

###
at line 24
`public __construct()`

###
in OnPixelBased at line 35
`public ImageInterface apply(ImageInterface $image)`

Applies scheduled transformation to ImageInterface instance Returns processed ImageInterface instance

#### Parameters

ImageInterface | $image |

#### Return Value

ImageInterface |