Table of Contents

Method DrawStar

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

DrawStar(SKCanvas, SKPoint, float, float, int, SKPaint)

Draws a star centered at the specified point.

public static void DrawStar(this SKCanvas canvas, SKPoint c, float outerRadius, float innerRadius, int points, SKPaint paint)

Parameters

canvas SKCanvas

The canvas to draw on.

c SKPoint

The center point of the star.

outerRadius float

The radius of the outer vertices.

innerRadius float

The radius of the inner vertices.

points int

The number of star points (outer vertices).

paint SKPaint

The paint to use for drawing.

DrawStar(SKCanvas, float, float, float, float, int, SKPaint)

Draws a star centered at the specified coordinates.

public static void DrawStar(this SKCanvas canvas, float cx, float cy, float outerRadius, float innerRadius, int points, SKPaint paint)

Parameters

canvas SKCanvas

The canvas to draw on.

cx float

The x-coordinate of the center.

cy float

The y-coordinate of the center.

outerRadius float

The radius of the outer vertices.

innerRadius float

The radius of the inner vertices.

points int

The number of star points (outer vertices).

paint SKPaint

The paint to use for drawing.