class Grayscale extends OnPixelBased implements FilterInterface

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

Properties

protected callable $callback from OnPixelBased

Methods

__construct()

Initialize the instance.

apply(ImageInterface $image)

Applies scheduled transformation to an ImageInterface instance.

Details

at line 23
__construct()

Initialize the instance.

in OnPixelBased at line 51
ImageInterface apply(ImageInterface $image)

Applies scheduled transformation to an ImageInterface instance.

Parameters

ImageInterface $image

Return Value

ImageInterface returns the processed ImageInterface instance

See also

FilterInterface::apply