OEImageFrame

class OEImageFrame : public OEImageBase

OEImageFrame class provides a convenient way to create a frame with a specific dimension and offset relative to an OEImageBase object. See Figure: Schematic representation of OEImageFrame objects.

../../_images/OEImageFrame.png

Schematic representation of OEImageFrame objects

The following methods are publicly inherited from OEImageBase:

Clear

DrawPie

DrawTriangle

DrawArc

DrawPoint

GetGlobalOffset

DrawCircle

DrawPolygon

GetHeight

DrawCubicBezier

DrawQuadraticBezier

GetMinFontSize

DrawLine

DrawRectangle

GetWidth

DrawPath

DrawText

GetSVGClass

GetSVGGroup

GetSVGGroups

NewSVGClass

NewSVGGroup

PopGroup

PushGroup

SetMinFontSize

Constructors

OEImageFrame(parent: OEImageBase, width: float, height: float,
             offset: OE2DPoint) -> OEImageFrame

Creates an OEImageFrame object with the given dimension.

parent

The parent OEImageBase object in which the OEImageFrame object is placed.

width

The width of the OEImageFrame object.

height

The height of the OEImageFrame object.

offset

The offset of the OEImageFrame object relative to top/left corner of its OEImageBase parent.

OEImageFrame(parent: OEImageBase, padding: float) -> OEImageFrame

Creates an OEImageFrame object equal paddings around the given image positioning the image frame to the center of the image.

parent

The parent OEImageBase object in which the OEImageFrame object is placed.

padding

The padding that applied in all four sides around the parent image. The padding is capped by the \(\frac{1}{3}\) of width and height of the parent image.

Clear

Clear(arg2: OEColor) -> None

Clears the image with the given color.

See also

DrawArc

DrawArc(c: OE2DPoint, bgnAngle: float, endAngle: float, rad: float,
        pen: OEPen) -> None

Draws the outline of an arc. See example in Figure: Example of drawing an arc.

../../_images/OEImageBase-DrawArc.png

Example of drawing an arc

See also

DrawCircle

DrawCircle(c: OE2DPoint, rad: float, pen: OEPen) -> None

Draws a circle. See example in Figure: Example of drawing a circle.

../../_images/OEImageBase-DrawCircle.png

Example of drawing a circle

See also

DrawCubicBezier

DrawCubicBezier(bgn: OE2DPoint, c1: OE2DPoint, c2: OE2DPoint,
                end: OE2DPoint, pen: OEPen) -> None

Draws a cubic Bézier curve. See example in Figure: Example of drawing a cubic Bezier curve.

../../_images/OEImageBase-DrawCubicBezier.png

Example of drawing a cubic Bezier curve

See also

DrawLine

DrawLine(bgn: OE2DPoint, end: OE2DPoint, pen: OEPen) -> None

Draws a line. See example in Figure: Example of drawing a line.

../../_images/OEImageBase-DrawLine.png

Example of drawing a line

See also

DrawPath

DrawPath(path: OE2DPath, pen: OEPen) -> None

Draws a path. See example in Figure: Example of drawing a path.

../../_images/OEImageBase-DrawPath.png

Example of drawing a path

See also

DrawPie

DrawPie(c: OE2DPoint, bgnAngle: float, endAngle: float, rad: float,
        pen: OEPen) -> None

Draws a pie. See example in Figure: Example of drawing a pie.

../../_images/OEImageBase-DrawPie.png

Example of drawing a pie

See also

DrawPoint

DrawPoint(p: OE2DPoint, color: OEColor) -> None

Draws a point. See example in Figure: Example of drawing a point.

../../_images/OEImageBase-DrawPoint.png

Example of drawing a point

See also

DrawPolygon

DrawPolygon(p: OE2DPointVector, pen: OEPen) -> None

Draws a closed polygon. See example in Figure: Example of drawing a polygon.

../../_images/OEImageBase-DrawPolygon.png

Example of drawing a polygon

See also

DrawQuadraticBezier

DrawQuadraticBezier(bgn: OE2DPoint, c1: OE2DPoint, end: OE2DPoint,
                    pen: OEPen) -> None

Draws a quadratic Bézier curve. See example in Figure: Example of drawing a quadratic Bezier curve.

../../_images/OEImageBase-DrawQuadraticBezier.png

Example of drawing a quadratic Bezier curve

See also

DrawRectangle

DrawRectangle(tl: OE2DPoint, br: OE2DPoint, pen: OEPen) -> None

Draws a rectangle. See example in Figure: Example of drawing a rectangle.

../../_images/OEImageBase-DrawRectangle.png

Example of drawing a rectangle

See also

DrawText

DrawText(c: OE2DPoint, text: str, font: OEFont,
         maxwidth: float = 0.0) -> None

Draws a text. See example in Figure: Example of drawing a text.

../../_images/OEImageBase-DrawText.png

Example of drawing a text

See also

DrawTriangle

DrawTriangle(arg2: OE2DPoint, arg3: OE2DPoint, arg4: OE2DPoint,
             arg5: OEPen) -> None

Draws a triangle. See example in Figure: Example of drawing a triangle.

../../_images/OEImageBase-DrawTriangle.png

Example of drawing a triangle

See also

GetHeight

GetHeight() -> float

Returns the height of the OEImageFrame object.

GetOffset

GetOffset() -> OE2DPoint

Returns the offset of the OEImageFrame object relative to its OEImageBase parent.

GetWidth

GetWidth() -> float

Returns the width of the OEImageFrame object.