class Resize implements FilterInterface

A resize filter.

Methods

__construct(BoxInterface $size, string $filter = ImageInterface::FILTER_UNDEFINED)

Constructs Resize filter with given width and height.

apply(ImageInterface $image)

Applies scheduled transformation to an ImageInterface instance.

Details

at line 39
__construct(BoxInterface $size, string $filter = ImageInterface::FILTER_UNDEFINED)

Constructs Resize filter with given width and height.

Parameters

BoxInterface $size
string $filter

at line 50
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