Crop
in package
implements
FilterInterface
A crop filter.
Table of Contents
Interfaces
- FilterInterface
- Interface for imagine filters.
Properties
Methods
- __construct() : mixed
- Constructs a Crop filter with given x, y, coordinates and crop width and height values.
- apply() : ImageInterface
- Applies scheduled transformation to an ImageInterface instance.
Properties
$size
private
BoxInterface
$size
$start
private
PointInterface
$start
Methods
__construct()
Constructs a Crop filter with given x, y, coordinates and crop width and height values.
public
__construct(PointInterface $start, BoxInterface $size) : mixed
Parameters
- $start : PointInterface
- $size : BoxInterface
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