Border — Add a border around the image
Border is part of the Gallery package.
class Border implements Transform { private int $border_bottom private int $border_left private int $border_right private int $border_top private array $color public Canvas __construct ( int $border_top, int $border_right, int $border_bottom, int $border_left, array $color ); public resource apply ( resource $image, &$image ); }
Border
Add a border around the image
The image will increase in size.
private int $border_bottom
The width of the border
Default value: empty string
private int $border_left
The width of the border
Default value: empty string
private int $border_right
The width of the border
Default value: empty string
private int $border_top
The width of the border
Default value: empty string
private array $color
An array of three elements for the color in RGB
Default value: empty string
public Canvas __construct ( int $border_top, int $border_right, int $border_bottom, int $border_left, array $color );
Create a new Border transform
The order of the border width is the same as the order in CSS.
public resource apply ( resource $image, &$image );
Add the border around the image.