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.
Schematic representation of OEImageFrame objects
See also
The following methods are publicly inherited from OEImageBase:
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
OEImageBase.ClearmethodOEColor class
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.
Example of drawing an arc
See also
OEImageBase.DrawArcmethodOE2DPoint class
OEPen class
DrawCircle
DrawCircle(c: OE2DPoint, rad: float, pen: OEPen) -> None
Draws a circle. See example in Figure: Example of drawing a circle.
Example of drawing a circle
See also
OEImageBase.DrawCirclemethodOE2DPoint class
OEPen class
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.
Example of drawing a cubic Bezier curve
See also
OEImageBase.DrawCubicBeziermethodOE2DPoint class
OEPen classes
DrawLine
DrawLine(bgn: OE2DPoint, end: OE2DPoint, pen: OEPen) -> None
Draws a line. See example in Figure: Example of drawing a line.
Example of drawing a line
See also
OEImageBase.DrawLinemethodOE2DPoint class
OEPen classes
DrawPath
DrawPath(path: OE2DPath, pen: OEPen) -> NoneDraws a path. See example in Figure: Example of drawing a path.
![]()
Example of drawing a path
See also
OEImageBase.DrawPathmethodsOE2DPath class
OEPen classes
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.
Example of drawing a pie
See also
OEImageBase.DrawPiemethodsOE2DPoint class
OEPen classes
DrawPoint
DrawPoint(p: OE2DPoint, color: OEColor) -> None
Draws a point. See example in Figure: Example of drawing a point.
Example of drawing a point
See also
OEImageBase.DrawPointmethodOE2DPoint class
OEColor class
DrawPolygon
DrawPolygon(p: OE2DPointVector, pen: OEPen) -> None
Draws a closed polygon. See example in Figure: Example of drawing a polygon.
Example of drawing a polygon
See also
OEImageBase.DrawPolygonmethodOE2DPoint class
OEPen class
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.
Example of drawing a quadratic Bezier curve
See also
OEImageBase.DrawQuadraticBeziermethodsOE2DPoint class
OEPen classes
DrawRectangle
DrawRectangle(tl: OE2DPoint, br: OE2DPoint, pen: OEPen) -> None
Draws a rectangle. See example in Figure: Example of drawing a rectangle.
Example of drawing a rectangle
See also
OEImageBase.DrawRectanglemethodOE2DPoint class
OEPen class
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.
Example of drawing a text
See also
OEImageBase.DrawTextmethodOE2DPoint class
OEFont class
DrawTriangle
DrawTriangle(arg2: OE2DPoint, arg3: OE2DPoint, arg4: OE2DPoint,
arg5: OEPen) -> None
Draws a triangle. See example in Figure: Example of drawing a triangle.
Example of drawing a triangle
See also
OEImageBase.DrawTrianglemethodOE2DPoint class
OEPen classes
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.