Grayscale
extends OnPixelBased
in package
implements
FilterInterface
The Grayscale filter calculates the gray-value based on RGB.
Table of Contents
Interfaces
- FilterInterface
- Interface for imagine filters.
Properties
- $callback : callable
Methods
- __construct() : mixed
- Initialize the instance.
- apply() : ImageInterface
- Applies scheduled transformation to an ImageInterface instance.
Properties
$callback
protected
callable
$callback
Methods
__construct()
Initialize the instance.
public
__construct() : mixed
apply()
Applies scheduled transformation to an ImageInterface instance.
public
apply(ImageInterface $image) : ImageInterface
Parameters
- $image : ImageInterface
Tags
Return values
ImageInterface —returns the processed ImageInterface instance