Lucee object methods reference
Object Method Image.addBorder
Adds a rectangular border around the outside edge of a image.
Image.addBorder([number thickness,[string color,[string borderType]]]):void
Category
image
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Default Value | Description |
---|---|---|---|---|
thickness | number | No | 1 | Thickness of the border in pixels. The default value is 1. The border is added to the outside edge of the image; the image area is increased accordingly. |
color | string | No | black |
Optional. Border color. The default border color is black. See Usage. Only valid if the borderType is not specified or if borderType = "constant". |
borderType | string | No | constant |
The type of border: |