Click or drag to resize
CanvasGradientMeshCreateTensorPatch 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.NumericsVector2
colors
Type: System.NumericsVector4
edges
Type: Microsoft.Graphics.Canvas.GeometryCanvasGradientMeshPatchEdge

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