SKVertices.CreateCopy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateCopy(SKVertexMode, SKPoint[], SKColor[]) |
Creates a new SKVertices instance, making a copy of the vertices and related data. |
CreateCopy(SKVertexMode, SKPoint[], SKPoint[], SKColor[]) |
Creates a new SKVertices instance, making a copy of the vertices and related data. |
CreateCopy(SKVertexMode, SKPoint[], SKPoint[], SKColor[], UInt16[]) |
Creates a new SKVertices instance, making a copy of the vertices and related data. |
CreateCopy(SKVertexMode, SKPoint[], SKColor[])
Creates a new SKVertices instance, making a copy of the vertices and related data.
public static SkiaSharp.SKVertices CreateCopy (SkiaSharp.SKVertexMode vmode, SkiaSharp.SKPoint[] positions, SkiaSharp.SKColor[] colors);
Parameters
- vmode
- SKVertexMode
How to interpret the array of vertices.
- positions
- SKPoint[]
The array of vertices for the mesh.
- colors
- SKColor[]
The color for each vertex, to be interpolated across the triangle. May be null
.
Returns
Returns the new SKVertices instance.
Applies to
CreateCopy(SKVertexMode, SKPoint[], SKPoint[], SKColor[])
Creates a new SKVertices instance, making a copy of the vertices and related data.
public static SkiaSharp.SKVertices CreateCopy (SkiaSharp.SKVertexMode vmode, SkiaSharp.SKPoint[] positions, SkiaSharp.SKPoint[] texs, SkiaSharp.SKColor[] colors);
Parameters
- vmode
- SKVertexMode
How to interpret the array of vertices.
- positions
- SKPoint[]
The array of vertices for the mesh.
- texs
- SKPoint[]
The coordinates in texture space (not UV space) for each vertex. May be null
.
- colors
- SKColor[]
The color for each vertex, to be interpolated across the triangle. May be null
.
Returns
Returns the new SKVertices instance.
Applies to
CreateCopy(SKVertexMode, SKPoint[], SKPoint[], SKColor[], UInt16[])
Creates a new SKVertices instance, making a copy of the vertices and related data.
public static SkiaSharp.SKVertices CreateCopy (SkiaSharp.SKVertexMode vmode, SkiaSharp.SKPoint[] positions, SkiaSharp.SKPoint[] texs, SkiaSharp.SKColor[] colors, ushort[] indices);
Parameters
- vmode
- SKVertexMode
How to interpret the array of vertices.
- positions
- SKPoint[]
The array of vertices for the mesh.
- texs
- SKPoint[]
The coordinates in texture space (not UV space) for each vertex. May be null
.
- colors
- SKColor[]
The color for each vertex, to be interpolated across the triangle. May be null
.
- indices
- UInt16[]
The array of indices to reference into the vertex (texture coordinates, colors) array.
Returns
Returns the new SKVertices instance.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈