class Crop implements FilterInterface

A crop filter.

Methods

__construct(PointInterface $start, BoxInterface $size)

Constructs a Crop filter with given x, y, coordinates and crop width and height values.

apply(ImageInterface $image)

Applies scheduled transformation to an ImageInterface instance.

Details

at line 40
__construct(PointInterface $start, BoxInterface $size)

Constructs a Crop filter with given x, y, coordinates and crop width and height values.

Parameters

PointInterface $start
BoxInterface $size

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