Table of Contents

Method DrawRegularPolygon

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

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

Draws a regular polygon centered at the specified point.

public static void DrawRegularPolygon(this SKCanvas canvas, SKPoint c, float radius, int points, SKPaint paint)

Parameters

canvas SKCanvas

The canvas to draw on.

c SKPoint

The center point of the polygon.

radius float

The circumscribed circle radius.

points int

The number of vertices of the polygon.

paint SKPaint

The paint to use for drawing.

DrawRegularPolygon(SKCanvas, float, float, float, int, SKPaint)

Draws a regular polygon centered at the specified coordinates.

public static void DrawRegularPolygon(this SKCanvas canvas, float cx, float cy, float radius, 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.

radius float

The circumscribed circle radius.

points int

The number of vertices of the polygon.

paint SKPaint

The paint to use for drawing.