Skip to main content

DrawEllipse(IBrush, IPen, Point, Double, Double) Method

Draws an ellipse with the specified Brush and Pen.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public void DrawEllipse(
IBrush? brush,
IPen? pen,
Point center,
double radiusX,
double radiusY
)

Parameters

  IBrush
The brush used to fill the ellipse, or null for no fill.
  IPen
The pen used to stroke the ellipse, or null for no stroke.
  Point
The location of the center of the ellipse.
  Double
The horizontal radius of the ellipse.
  Double
The vertical radius of the ellipse.

Remarks

The brush and the pen can both be null. If the brush is null, then no fill is performed. If the pen is null, then no stoke is performed. If both the pen and the brush are null, then the drawing is not visible.

See Also

Reference

DrawingContext Class
DrawEllipse Overload
Avalonia.Media Namespace