Table of Contents

Method CreatePaint

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

CreatePaint(SKColor, LineCap, LineJoin, float)

Creates and configures a new SKPaint instance for drawing strokes.

public static SKPaint CreatePaint(SKColor color, LineCap lineCap, LineJoin lineJoin, float width)

Parameters

color SKColor

The color of the stroke.

lineCap LineCap

The style of the stroke's end caps.

lineJoin LineJoin

The style of the stroke's joins between line segments.

width float

The width of the stroke.

Returns

SKPaint

A configured SKPaint instance with the specified stroke properties.

Remarks

The returned SKPaint is preconfigured for stroke drawing, with the IsStroke property set to true.