Table of Contents

Method GraphicsCircle

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

GraphicsCircle(SKCanvas, Pen, Brush, PointD, float)

Draws a circle on the specified SKCanvas using the provided pen, brush, center point, and radius.

public static void GraphicsCircle(SKCanvas canvas, Pen pen, Brush brush, PointD center, float radius)

Parameters

canvas SKCanvas

The SKCanvas on which the circle will be drawn. Cannot be null.

pen Pen

The Pen that defines the stroke style of the circle. Can be null if no stroke is desired.

brush Brush

The Brush that defines the fill style of the circle. Can be null if no fill is desired.

center PointD

The PointD representing the center of the circle.

radius float

The radius of the circle, specified as a float. Must be a non-negative value.

Remarks

If both pen and brush are null, no circle will be drawn. The method uses SkiaSharp to render the circle, and the appearance of the circle depends on the styles defined by the pen and brush.