Imagine\Filter\Advanced\Border | Imagine API

- Classes
- Namespaces
- Interfaces
- Index

Imagine API
Class

# Imagine\Filter\Advanced\Border

class Border implements FilterInterface

A border filter

## Methods

| __construct(Color $color, integer $width = 1, integer $height = 1) Constructs Border filter with given color, width and height |
ImageInterface | apply(ImageInterface $image) Applies scheduled transformation to ImageInterface instance Returns processed ImageInterface instance |

## Details

###
at line 46
`public __construct(Color $color, integer $width = 1, integer $height = 1)`

Constructs Border filter with given color, width and height

#### Parameters

Color | $color |
integer | $width | Width of the border on the left and right sides of the image
integer | $height | Height of the border on the top and bottom sides of the image

###
at line 56
`public ImageInterface apply(ImageInterface $image)`

Applies scheduled transformation to ImageInterface instance Returns processed ImageInterface instance

#### Parameters

ImageInterface | $image |

#### Return Value

ImageInterface |