Table of Contents

Delegate SkiaHelper.SkCanvasDrawPointsDelegate

Namespace
Alternet.Skia
Assembly
Alternet.UI.Common.dll

Represents a delegate for drawing points on a canvas using the specified mode, point data, and paint.

public delegate void SkiaHelper.SkCanvasDrawPointsDelegate(nint canvas, SKPointMode mode, nint count, nint points, nint paint)

Parameters

canvas nint

A pointer to the canvas on which the points will be drawn. Must not be IntPtr.Zero.

mode SKPointMode

The mode that determines how the points are interpreted and drawn. See SKPointMode for available modes.

count nint

A pointer to the number of points to draw. Must not be IntPtr.Zero.

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. Must not be IntPtr.Zero.

paint nint

A pointer to the paint object that defines the style and color of the points. Must not be IntPtr.Zero.

Remarks

This delegate is used to invoke unmanaged code for drawing points on a canvas. The caller is responsible for ensuring that all pointers are valid and that the memory they reference remains accessible for the duration of the call.