IDWritePaintReader::GetGradientStopColors 方法 (dwrite_3.h)

检索有关每个渐变停止点的颜色信息,例如调色板索引。

语法

HRESULT GetGradientStopColors(
  UINT32             firstGradientStopIndex,
  UINT32             gradientStopCount,
  DWRITE_PAINT_COLOR *gradientStopColors
);

参数

firstGradientStopIndex

类型: UINT32

要获取的第一个渐变停止点的索引。

gradientStopCount

类型: UINT32

要获取的渐变停止点数。

gradientStopColors

类型:_Out_writes_ (gradientStopCount) DWRITE_PAINT_COLOR *

接收渐变停止点颜色。

返回值

标准 HRESULT 错误代码。

要求

要求
最低受支持的客户端 使用 Windows 应用 SDK 1.2 或更高版本的 Windows 10 版本 1809 ()
标头 dwrite_3.h