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.

const auto width  = 100u;
const auto height = 50u;
OEImage image(width, height);

OEPen pen(OEWhite, OELightGreen, OEFill::Off, 4.0);
OEDrawBorder(image, pen);

OEWriteImage("OEDrawBorder.png", image);
../../_images/OEDrawBorder.png

Example of using the OEDrawBorder function

See also