Border
in package
implements
FilterInterface
A border filter.
Table of Contents
Interfaces
- FilterInterface
- Interface for imagine filters.
Properties
- $color : ColorInterface
- $height : int
- $width : int
Methods
- __construct() : mixed
- Constructs Border filter with given color, width and height.
- apply() : ImageInterface
- Applies scheduled transformation to an ImageInterface instance.
Properties
$color
private
ColorInterface
$color
$height
private
int
$height
$width
private
int
$width
Methods
__construct()
Constructs Border filter with given color, width and height.
public
__construct(ColorInterface $color[, int $width = 1 ][, int $height = 1 ]) : mixed
Parameters
- $color : ColorInterface
- $width : int = 1
-
Width of the border on the left and right sides of the image
- $height : int = 1
-
Height of the border on the top and bottom sides of the image
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