Table of Contents

Method SkCanvasDrawPointsNative

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

SkCanvasDrawPointsNative(nint, SKPointMode, nint, nint, nint)

Draws a series of points on the specified canvas using the given mode, points, and paint.

public static bool SkCanvasDrawPointsNative(nint canvas, SKPointMode mode, nint count, nint points, nint paint)

Parameters

canvas nint

A pointer to the native canvas on which the points will be drawn. Cannot be null.

mode SKPointMode

The mode that determines how the points are drawn, such as individual points, lines, or polygonal paths.

count nint

A pointer to the number of points to draw. Must be a valid, non-negative integer.

points nint

A pointer to the array of points to be drawn. The array must contain at least the number of points specified by count.

paint nint

A pointer to the paint object that defines the style and color used to draw the points. Cannot be null.

Returns

bool

Remarks

This method is a wrapper for invoking the native SkiaSharp function to draw points on a canvas. Ensure that all pointers passed to this method are valid and properly initialized to avoid undefined behavior.