Class Ellipse
Defines an ellipse shape.
Inherited Members
Namespace: nanoFramework.Presentation.Shapes
Assembly: nanoFramework.Graphics.dll
Syntax
public class Ellipse : Shape
Constructors
Ellipse(int, int)
Initializes a new instance of the Ellipse class with the specified radii.
Declaration
public Ellipse(int xRadius, int yRadius)
Parameters
Type | Name | Description |
---|---|---|
int | xRadius | The x-radius of the ellipse. |
int | yRadius | The y-radius of the ellipse. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when either radius is less than zero. |
Methods
OnRender(DrawingContext)
Draws the ellipse on a Media.DrawingContext.
Declaration
public override void OnRender(DrawingContext dc)
Parameters
Type | Name | Description |
---|---|---|
DrawingContext | dc | The Media.DrawingContext on which to draw the ellipse. |