创建包含给定控制点、颜色和边界标志 的D2D1_GRADIENT_MESH_PATCH 结构。
语法
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
);
参数
point00
类型: D2D1_POINT_2F
控制点在位置 00 处的坐标空间位置。
point01
类型: D2D1_POINT_2F
控制点在位置 01 处的坐标空间位置。
point02
类型: D2D1_POINT_2F
控制点在位置 02 处的坐标空间位置。
point03
类型: D2D1_POINT_2F
控制点在位置 03 处的坐标空间位置。
point10
类型: D2D1_POINT_2F
控制点在位置 10 处的坐标空间位置。
point11
类型: D2D1_POINT_2F
控制点在位置 11 处的坐标空间位置。
point12
类型: D2D1_POINT_2F
控制点在位置 12 处的坐标空间位置。
point13
类型: D2D1_POINT_2F
控制点在位置 13 处的坐标空间位置。
point20
类型: D2D1_POINT_2F
控制点在位置 20 处的坐标空间位置。
point21
类型: D2D1_POINT_2F
控制点在位置 21 处的坐标空间位置。
point22
类型: D2D1_POINT_2F
控制点在位置 22 处的坐标空间位置。
point23
类型: D2D1_POINT_2F
控制点在位置 23 处的坐标空间位置。
point30
类型: D2D1_POINT_2F
控制点在位置 30 处的坐标空间位置。
point31
类型: D2D1_POINT_2F
控制点在位置 31 处的坐标空间位置。
point32
类型: D2D1_POINT_2F
控制点在位置 32 处的坐标空间位置。
point33
类型: D2D1_POINT_2F
控制点在位置 33 处的坐标空间位置。
color00
类型: D2D1_COLOR_F
与位置 00 处的控制点关联的颜色。
color03
类型: D2D1_COLOR_F
与位置 03 处的控制点关联的颜色。
color30
类型: D2D1_COLOR_F
与位置 30 处的控制点关联的颜色。
color33
类型: D2D1_COLOR_F
与位置 33 处的控制点关联的颜色。
topEdgeMode
指定如何呈现网格的上边缘。
leftEdgeMode
指定如何呈现网格的左边缘。
bottomEdgeMode
指定如何呈现网格的下边缘。
rightEdgeMode
指定如何呈现网格的右边缘。
返回值
返回创建的 D2D1_GRADIENT_MESH_PATCH 结构。
要求
| 最低受支持的客户端 | Windows 7、带 SP2 的 Windows Vista 和适用于 Windows Vista 的平台更新 [桌面应用 |UWP 应用] | 
| 最低受支持的服务器 | Windows Server 2008 R2、Windows Server 2008 SP2 和适用于 Windows Server 2008 的平台更新 [桌面应用 |UWP 应用] | 
| 目标平台 | Windows | 
| 标头 | d2d1_3helper.h | 
| Library | D2d1.lib | 
| DLL | D2d1.dll |