Click or drag to resize
CanvasGradientMesh.CreateTensorPatch Method
Creates a CanvasGradientMesh using tensor patch semantics.

Namespace:  Microsoft.Graphics.Canvas.Geometry
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public static CanvasGradientMeshPatch CreateTensorPatch(
	Vector2[] points,
	Vector4[] colors,
	CanvasGradientMeshPatchEdge[] edges
)

Parameters

points
Type:System.Numerics.Vector2[]
colors
Type:System.Numerics.Vector4[]
edges
Type:Microsoft.Graphics.Canvas.Geometry.CanvasGradientMeshPatchEdge[]

Return Value

Type: CanvasGradientMeshPatch
Remarks

CreateTensorPatch requires that:

  • The size of the points array is 16.
  • The size of the colors array is 4.
  • The size of the edges array is 4.

The input point, color, and edge arrays are laid out as:

CanvasGradientMeshPatch.CreateTensorPatch diagram
See Also