SetImageBorderType — Draw a border around the image




SetImageBorderType controls the drawing of a border around the entire image. By default, no border is drawn.



A string indicating the desired border type: 'raised', 'plain', or 'none'. A plain border is 1 pixel wide. A raised border is 2 pixels wide, with the bottom and left sides drawn in a darker color.


The color of the image border is set with SetImageBorderColor. By default, no image border is drawn.

It can be useful to have a border drawn around images when embedded in an HTML page. An alternative to this function is to use the BORDER attribute in the IMG tag when embedding the image. With that attribute, you can also control the border width.


Use of 'none' to turn the border off was added in PHPlot-5.1.0.