Table of Contents

Method ToSkiaArray

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

ToSkiaArray(PointD[])

Converts an array of PointD structures to an array of SKPoint structures.

public static SKPoint[] ToSkiaArray(PointD[] source)

Parameters

source PointD[]

The array of PointD to convert. Must not be null.

Returns

SKPoint[]

An array of SKPoint structures corresponding to the input source array.

Remarks

This method performs a memory-efficient conversion by casting the elements of the input array. The resulting array contains the same data as the input, but represented as SKPoint structures.

ToSkiaArray(ReadOnlySpan<PointD>)

Converts a read-only span of PointD structures to an array of SKPoint structures.

public static SKPoint[] ToSkiaArray(ReadOnlySpan<PointD> source)

Parameters

source ReadOnlySpan<PointD>

The read-only span of PointD to convert.

Returns

SKPoint[]

An array of SKPoint structures representing the converted points.

Remarks

This method performs a memory cast to convert the elements of the span. The resulting array is a copy of the data, and modifications to the returned array will not affect the original span.