ImmediateDrawingContextDrawEllipse Method
Draws an ellipse with the specified Brush and Pen.
Namespace: Avalonia.MediaAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public void DrawEllipse(
IImmutableBrush? brush,
ImmutablePen? pen,
Point center,
double radiusX,
double radiusY
)
Public Sub DrawEllipse (
brush As IImmutableBrush,
pen As ImmutablePen,
center As Point,
radiusX As Double,
radiusY As Double
)
member DrawEllipse :
brush : IImmutableBrush *
pen : ImmutablePen *
center : Point *
radiusX : float *
radiusY : float -> unit
Parameters
- brush IImmutableBrush
- The brush used to fill the ellipse, or null for no fill.
- pen ImmutablePen
- The pen used to stroke the ellipse, or null for no stroke.
- center Point
- The location of the center of the ellipse.
- radiusX Double
- The horizontal radius of the ellipse.
- radiusY Double
- The vertical radius of the ellipse.
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.