image.addBorder()
Adds a rectangular border around the outside edge of a image.
image.addBorder( thickness=number, color=string, borderType=string )
Returns: void
| Argument | Description |
|---|---|
|
thickness
number,
optional
|
edit
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,
optional
|
edit
Optional. Border color. The default border color is black. See Usage. Only valid if the borderType is not specified or if borderType = "constant". Alias: colour |
|
borderType
string,
optional
|
edit
The type of border:
Alias: type, border |
Examples
edit newImg = imageNew("",200,200,"rgb","red");
newImg.addborder(10,"blue");
cfimage(action = "writeToBrowser", source = newImg);