Table of Contents

Class Ellipse

Namespace
Bonsai.Vision.Drawing
Assembly
Bonsai.Vision.dll

Represents an operator that specifies drawing an ellipse outline, filled ellipse, elliptic arc, or filled elliptic sector.

public class Ellipse : CanvasElement
Inheritance
Ellipse
Inherited Members

Properties

Angle

Gets or sets the rotation angle of the ellipse, in degrees.

[Range(0, 360)]
public double Angle { get; set; }

Property Value

double

Axes

Gets or sets the length of the ellipse axes.

public Size Axes { get; set; }

Property Value

Size

Center

Gets or sets the center of the ellipse.

public Point Center { get; set; }

Property Value

Point

Color

Gets or sets the color of the ellipse.

[Range(0, 255)]
[Precision(0, 1)]
[TypeConverter(typeof(BgraScalarConverter))]
public Scalar Color { get; set; }

Property Value

Scalar

EndAngle

Gets or sets the ending angle of the elliptic arc, in degrees.

[Range(0, 360)]
public double EndAngle { get; set; }

Property Value

double

LineType

Gets or sets a value specifying the line drawing algorithm used to draw the ellipse boundary.

public LineFlags LineType { get; set; }

Property Value

LineFlags

Shift

Gets or sets the number of fractional bits in the center coordinates and axes' values.

public int Shift { get; set; }

Property Value

int

StartAngle

Gets or sets the starting angle of the elliptic arc, in degrees.

[Range(0, 360)]
public double StartAngle { get; set; }

Property Value

double

Thickness

Gets or sets the thickness of the ellipse boundary, if positive. Otherwise, indicates that the ellipse should be filled.

public int Thickness { get; set; }

Property Value

int

Methods

GetRenderer()

Returns the ellipse drawing operation.

protected override Action<IplImage> GetRenderer()

Returns

Action<IplImage>

The Action<T> object that will be invoked to apply the drawing operation to the canvas bitmap during rendering.