Table of Contents

Class Ellipse

Namespace
nanoFramework.Presentation.Shapes
Assembly
nanoFramework.Graphics.dll

Defines an ellipse shape.

public class Ellipse : Shape
Inheritance
Ellipse
Inherited Members
Extension Methods

Constructors

Ellipse(int, int)

Initializes a new instance of the Ellipse class with the specified radii.

public Ellipse(int xRadius, int yRadius)

Parameters

xRadius int

The x-radius of the ellipse.

yRadius int

The y-radius of the ellipse.

Exceptions

ArgumentException

Thrown when either radius is less than zero.

Methods

OnRender(DrawingContext)

Draws the ellipse on a Media.DrawingContext.

public override void OnRender(DrawingContext dc)

Parameters

dc DrawingContext

The Media.DrawingContext on which to draw the ellipse.