DrawingContextDrawEllipse(IBrush, IPen, Rect) 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(
IBrush? brush,
IPen? pen,
Rect rect
)
Public Sub DrawEllipse (
brush As IBrush,
pen As IPen,
rect As Rect
)
member DrawEllipse :
brush : IBrush *
pen : IPen *
rect : Rect -> unit
Parameters
- brush IBrush
- The brush used to fill the ellipse, or null for no fill.
- pen IPen
- The pen used to stroke the ellipse, or null for no stroke.
- rect Rect
- The bounding rect.
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.