Click or drag to resize
CanvasGradientMeshPatch Structure
Describes a patch which can comprise a gradient mesh.

Namespace:  Microsoft.Graphics.Canvas.Geometry
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public struct CanvasGradientMeshPatch

The CanvasGradientMeshPatch type exposes the following members.

Fields
  NameDescription
Public fieldColor00
The color at Point00.
Public fieldColor03
The color at Point03.
Public fieldColor30
The color at Point30.
Public fieldColor33
The color at Point33.
Public fieldEdge00To03
The type of edge from Point00 to Point03.
Public fieldEdge03To33
The type of edge from Point03 to Point33.
Public fieldEdge30To00
The type of edge from Point30 to Point00.
Public fieldEdge33To30
The type of edge from Point33 to Point30.
Public fieldPoint00
The point at row 0, column 0 in the patch.
Public fieldPoint01
The point at row 0, column 1 in the patch.
Public fieldPoint02
The point at row 0, column 2 in the patch.
Public fieldPoint03
The point at row 0, column 3 in the patch.
Public fieldPoint10
The point at row 1, column 0 in the patch.
Public fieldPoint11
The point at row 1, column 1 in the patch.
Public fieldPoint12
The point at row 1, column 2 in the patch.
Public fieldPoint13
The point at row 1, column 3 in the patch.
Public fieldPoint20
The point at row 2, column 0 in the patch.
Public fieldPoint21
The point at row 2, column 1 in the patch.
Public fieldPoint22
The point at row 2, column 2 in the patch.
Public fieldPoint23
The point at row 2, column 3 in the patch.
Public fieldPoint30
The point at row 3, column 0 in the patch.
Public fieldPoint31
The point at row 3, column 1 in the patch.
Public fieldPoint32
The point at row 3, column 2 in the patch.
Public fieldPoint33
The point at row 3, column 3 in the patch.
Top
Remarks

A bezier patch is defined by four bezier curves along its edges, four interior control points, and colors at each of the four corners. Given its grid of sixteen control points, a patch has a bezier curve for each of its four rows, and for each of its four columns. These cubic bezier curves determine the area filled by the patch, and its gradient color.

The colors in the interior are a bilinearly interpolated between the corner colors.

The sixteen Point fields in this struct are laid out as:

CanvasGradientMeshPatch Points diagram
See Also