GradientMeshPatchFromCoonsPatch function (d2d1_3helper.h)

Creates a D2D1_GRADIENT_MESH_PATCH from a given Coons patch description.

Syntax

D2D1_GRADIENT_MESH_PATCH GradientMeshPatchFromCoonsPatch(
  D2D1_POINT_2F        point0,
  D2D1_POINT_2F        point1,
  D2D1_POINT_2F        point2,
  D2D1_POINT_2F        point3,
  D2D1_POINT_2F        point4,
  D2D1_POINT_2F        point5,
  D2D1_POINT_2F        point6,
  D2D1_POINT_2F        point7,
  D2D1_POINT_2F        point8,
  D2D1_POINT_2F        point9,
  D2D1_POINT_2F        point10,
  D2D1_POINT_2F        point11,
  D2D1_COLOR_F         color0,
  D2D1_COLOR_F         color1,
  D2D1_COLOR_F         color2,
  D2D1_COLOR_F         color3,
  D2D1_PATCH_EDGE_MODE topEdgeMode,
  D2D1_PATCH_EDGE_MODE leftEdgeMode,
  D2D1_PATCH_EDGE_MODE bottomEdgeMode,
  D2D1_PATCH_EDGE_MODE rightEdgeMode
);

Parameters

point0

Type: D2D1_POINT_2F

The coordinate-space location of the control point at position 0.

point1

Type: D2D1_POINT_2F

The coordinate-space location of the control point at position 1.

point2

Type: D2D1_POINT_2F

The coordinate-space location of the control point at position 2.

point3

Type: D2D1_POINT_2F

The coordinate-space location of the control point at position 3.

point4

Type: D2D1_POINT_2F

The coordinate-space location of the control point at position 4.

point5

Type: D2D1_POINT_2F

The coordinate-space location of the control point at position 5.

point6

Type: D2D1_POINT_2F

The coordinate-space location of the control point at position 6.

point7

Type: D2D1_POINT_2F

The coordinate-space location of the control point at position 7.

point8

Type: D2D1_POINT_2F

The coordinate-space location of the control point at position 8.

point9

Type: D2D1_POINT_2F

The coordinate-space location of the control point at position 9.

point10

Type: D2D1_POINT_2F

The coordinate-space location of the control point at position 10.

point11

Type: D2D1_POINT_2F

The coordinate-space location of the control point at position 11.

color0

Type: D2D1_COLOR_F

The color associated with the control point at position 0.

color1

Type: D2D1_COLOR_F

The color associated with the control point at position 1.

color2

Type: D2D1_COLOR_F

The color associated with the control point at position 2.

color3

Type: D2D1_COLOR_F

The color associated with the control point at position 3.

topEdgeMode

Type: D2D1_PATCH_EDGE_MODE

Specifies how to render the top edge of the mesh.

leftEdgeMode

Type: D2D1_PATCH_EDGE_MODE

Specifies how to render the left edge of the mesh.

bottomEdgeMode

Type: D2D1_PATCH_EDGE_MODE

Specifies how to render the bottom edge of the mesh.

rightEdgeMode

Type: D2D1_PATCH_EDGE_MODE

Specifies how to render the right edge of the mesh.

Return value

Type: D2D1_GRADIENT_MESH_PATCH

Returns the created D2D1_GRADIENT_MESH_PATCH structure.

Remarks

The following image shows the numbering of control points in a Coons patch.

Numbering of control points in a Coons patch

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1_3helper.h
Library D2d1.lib
DLL D2d1.dll

See also

D2D1_GRADIENT_MESH_PATCH