OnPixelBased
in package
implements
FilterInterface
The OnPixelBased takes a callable, and for each pixel, this callable is called with the image (\Imagine\Image\ImageInterface) and the current point (\Imagine\Image\Point).
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(callable $callback) : mixed
Parameters
- $callback : callable
Tags
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