GradientMeshPatch function (d2d1_3helper.h)

Creates a D2D1_GRADIENT_MESH_PATCH structure that contains the given control points, colors, and boundary flags.

Syntax

D2D1_GRADIENT_MESH_PATCH GradientMeshPatch(
  D2D1_POINT_2F        point00,
  D2D1_POINT_2F        point01,
  D2D1_POINT_2F        point02,
  D2D1_POINT_2F        point03,
  D2D1_POINT_2F        point10,
  D2D1_POINT_2F        point11,
  D2D1_POINT_2F        point12,
  D2D1_POINT_2F        point13,
  D2D1_POINT_2F        point20,
  D2D1_POINT_2F        point21,
  D2D1_POINT_2F        point22,
  D2D1_POINT_2F        point23,
  D2D1_POINT_2F        point30,
  D2D1_POINT_2F        point31,
  D2D1_POINT_2F        point32,
  D2D1_POINT_2F        point33,
  D2D1_COLOR_F         color00,
  D2D1_COLOR_F         color03,
  D2D1_COLOR_F         color30,
  D2D1_COLOR_F         color33,
  D2D1_PATCH_EDGE_MODE topEdgeMode,
  D2D1_PATCH_EDGE_MODE leftEdgeMode,
  D2D1_PATCH_EDGE_MODE bottomEdgeMode,
  D2D1_PATCH_EDGE_MODE rightEdgeMode
);

Parameters

point00

Type: D2D1_POINT_2F

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

point01

Type: D2D1_POINT_2F

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

point02

Type: D2D1_POINT_2F

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

point03

Type: D2D1_POINT_2F

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

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.

point12

Type: D2D1_POINT_2F

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

point13

Type: D2D1_POINT_2F

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

point20

Type: D2D1_POINT_2F

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

point21

Type: D2D1_POINT_2F

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

point22

Type: D2D1_POINT_2F

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

point23

Type: D2D1_POINT_2F

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

point30

Type: D2D1_POINT_2F

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

point31

Type: D2D1_POINT_2F

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

point32

Type: D2D1_POINT_2F

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

point33

Type: D2D1_POINT_2F

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

color00

Type: D2D1_COLOR_F

The color associated with the control point at position 00.

color03

Type: D2D1_COLOR_F

The color associated with the control point at position 03.

color30

Type: D2D1_COLOR_F

The color associated with the control point at position 30.

color33

Type: D2D1_COLOR_F

The color associated with the control point at position 33.

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.

Requirements

   
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