- Classes
- Namespaces
- Interfaces
- Traits
- Index

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 23
`public __construct()`

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

Applies scheduled transformation to ImageInterface instance Returns processed ImageInterface instance

#### Parameters

ImageInterface | $image |

#### Return Value

ImageInterface |