SKCanvas.DrawVertices 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
DrawVertices(SKVertexMode, SKPoint[], SKPoint[], SKColor[], UInt16[], SKPaint) |
Draws an array of vertices, interpreted as triangles (based on mode). |
DrawVertices(SKVertexMode, SKPoint[], SKPoint[], SKColor[], SKBlendMode, UInt16[], SKPaint) |
Draws an array of vertices, interpreted as triangles (based on mode). |
DrawVertices(SKVertexMode, SKPoint[], SKPoint[], SKColor[], SKPaint) |
Draws an array of vertices, interpreted as triangles (based on mode). |
DrawVertices(SKVertexMode, SKPoint[], SKColor[], SKPaint) |
Draws an array of vertices, interpreted as triangles (based on mode). |
DrawVertices(SKVertices, SKBlendMode, SKPaint) |
Draws a set of vertices. |
DrawVertices(SKVertexMode, SKPoint[], SKPoint[], SKColor[], UInt16[], SKPaint)
Draws an array of vertices, interpreted as triangles (based on mode).
public void DrawVertices (SkiaSharp.SKVertexMode vmode, SkiaSharp.SKPoint[] vertices, SkiaSharp.SKPoint[] texs, SkiaSharp.SKColor[] colors, ushort[] indices, SkiaSharp.SKPaint paint);
Parameters
- vmode
- SKVertexMode
How to interpret the array of vertices.
- vertices
- 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.
- paint
- SKPaint
The shader/texture.
Remarks
If both textures and vertex-colors are null
, it strokes hairlines with the paint's color. This behavior is a useful debugging mode to visualize the mesh.
Applies to
DrawVertices(SKVertexMode, SKPoint[], SKPoint[], SKColor[], SKBlendMode, UInt16[], SKPaint)
Draws an array of vertices, interpreted as triangles (based on mode).
public void DrawVertices (SkiaSharp.SKVertexMode vmode, SkiaSharp.SKPoint[] vertices, SkiaSharp.SKPoint[] texs, SkiaSharp.SKColor[] colors, SkiaSharp.SKBlendMode mode, ushort[] indices, SkiaSharp.SKPaint paint);
Parameters
- vmode
- SKVertexMode
How to interpret the array of vertices.
- vertices
- 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
.
- mode
- SKBlendMode
The blend mode to use to combine the colors with the texture, before being drawn using the paint. Used if both texture coordinates and colors are present.
- indices
- UInt16[]
The array of indices to reference into the vertex (texture coordinates, colors) array.
- paint
- SKPaint
The shader/texture.
Remarks
If both textures and vertex-colors are null
, it strokes hairlines with the paint's color. This behavior is a useful debugging mode to visualize the mesh.
Applies to
DrawVertices(SKVertexMode, SKPoint[], SKPoint[], SKColor[], SKPaint)
Draws an array of vertices, interpreted as triangles (based on mode).
public void DrawVertices (SkiaSharp.SKVertexMode vmode, SkiaSharp.SKPoint[] vertices, SkiaSharp.SKPoint[] texs, SkiaSharp.SKColor[] colors, SkiaSharp.SKPaint paint);
Parameters
- vmode
- SKVertexMode
How to interpret the array of vertices.
- vertices
- 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
.
- paint
- SKPaint
The shader/texture.
Remarks
If both textures and vertex-colors are null
, it strokes hairlines with the paint's color. This behavior is a useful debugging mode to visualize the mesh.
Applies to
DrawVertices(SKVertexMode, SKPoint[], SKColor[], SKPaint)
Draws an array of vertices, interpreted as triangles (based on mode).
public void DrawVertices (SkiaSharp.SKVertexMode vmode, SkiaSharp.SKPoint[] vertices, SkiaSharp.SKColor[] colors, SkiaSharp.SKPaint paint);
Parameters
- vmode
- SKVertexMode
How to interpret the array of vertices.
- vertices
- SKPoint[]
The array of vertices for the mesh.
- colors
- SKColor[]
The color for each vertex, to be interpolated across the triangle. May be null
.
- paint
- SKPaint
The shader/texture.
Applies to
DrawVertices(SKVertices, SKBlendMode, SKPaint)
Draws a set of vertices.
public void DrawVertices (SkiaSharp.SKVertices vertices, SkiaSharp.SKBlendMode mode, SkiaSharp.SKPaint paint);
Parameters
- vertices
- SKVertices
The mesh to draw.
- mode
- SKBlendMode
The blend mode to use to combine the colors with the texture, before being drawn using the paint. Used if both texture coordinates and colors are present.
- paint
- SKPaint
The shader/texture.
Remarks
If both textures and vertex-colors are null
, it strokes hairlines with the paint's color. This behavior is a useful debugging mode to visualize the mesh.