void OEDrawCurvedBorder(OEImageBase &image, const OEPen &pen, double radius);

Draws a round rectangle around the image with the given pen.

The image around which the border is drawn.
The graphical properties of the border.
The parameter that determines the roundedness of the corners of the rectangle.

See code snippet below and the corresponding image in Figure: Example of using the OEDrawCurvedBorder function.

const unsigned int width  = 100;
const unsigned int height = 50;
OEImage image(width, height);

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

OEWriteImage("OEDrawCurvedBorder.png", image);

Example of using the OEDrawCurvedBorder function

See also