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 |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈