OEDrawBorder¶
void OEDrawBorder(OEImageBase &image, const OEPen &pen)
Draws a border around the image with the given pen.
- image
The image around which the border is drawn.
- pen
The graphical properties of the border.
See code snippet below and the corresponding image in Figure: Example of using the OEDrawBorder function.
int width = 100;
int height = 50;
OEImage image = new OEImage(width, height);
OEPen pen = new OEPen(OEChem.OEWhite, OEChem.OELightGreen, OEFill.Off, 4.0);
OEDepict.OEDrawBorder(image, pen);
OEDepict.OEWriteImage("OEDrawBorder.png", image);

Example of using the OEDrawBorder function¶
See also
OEImageBase class
OEPen class
OEDrawCurvedBorder
function