OEDrawText

void OEDrawText(OEImageBase &image, const std::string &text,
                const OEFont &font, double padding=5.0)

Draws the given text to the image respecting the font alignment.

text

The text that is going to be rendered into the given image.

font

The OEFont object that encapsulates properties that determine the display style of text.

padding

Defines the padding used on the left and right of the given cell as a percentage of the width of the cell.

See also