The border() function is an inbuilt function in the GraphicsMagick library which is used to surround the image with a border of color. The function returns the true value on success.
border( width, height )
Parameters: This function accept two parameters as mentioned above and described below:
- width: This parameter is used to specify the width of the border around the image.
- height: This parameter is used to specify the height of the border around the image.
Return Value: This function returns the GraphicsMagick object.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.