Table of Contents

Method CreateRectanglePath

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

CreateRectanglePath(float, float, SKPathDirection)

Creates a rectangle path centered at the origin with the specified dimensions.

public static SKPath CreateRectanglePath(float width, float height, SKPathDirection direction = SKPathDirection.Clockwise)

Parameters

width float

The width of the rectangle.

height float

The height of the rectangle.

direction SKPathDirection

The winding direction of the path.

Returns

SKPath

A new SKPath representing the rectangle.