class Border implements FilterInterface

A border filter.

Methods

__construct(ColorInterface $color, int $width = 1, int $height = 1)

Constructs Border filter with given color, width and height.

apply(ImageInterface $image)

Applies scheduled transformation to an ImageInterface instance.

Details

at line 46
__construct(ColorInterface $color, int $width = 1, int $height = 1)

Constructs Border filter with given color, width and height.

Parameters

ColorInterface $color
int $width Width of the border on the left and right sides of the image
int $height Height of the border on the top and bottom sides of the image

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