php8.5
Home/ Manual/ gmagick / gmagick/ Gmagick::borderimage

Gmagick::borderimage

PHP function Edit on GitHub ✎

(PECL gmagick >= Unknown)

Surrounds the image with a border

Description

Gmagick::borderimage(GmagickPixel $color, int $width, int $height): Gmagick

Surrounds the image with a border of the color defined by the bordercolor GmagickPixel object or a color string.

Parameters

color

GmagickPixel object or a string containing the border color.

width

Border width.

height

Border height.

Return Values

The Gmagick object with border defined.

Errors/Exceptions

Throw

Source: reference/gmagick/gmagick/borderimage.xml · from the official PHP manual (php/doc-en)