检索当前画图元素的渐变停止点。
语法
HRESULT GetGradientStops(
UINT32 firstGradientStopIndex,
UINT32 gradientStopCount,
D2D1_GRADIENT_STOP *gradientStops
);
参数
firstGradientStopIndex
类型:UINT32
要检索的第一个渐变停止点的索引。
gradientStopCount
类型:UINT32
要检索的渐变停止点数。
gradientStops
类型:_Out_writes_(gradientStopCount) D2D1_GRADIENT_STOP *
接收渐变停止点。
返回值
标准 HRESULT 错误代码。
注解
渐变停止点按位置保证按升序排列。
要求
要求 | 价值 |
---|---|
最低支持的客户端 | Windows 10 版本 1809(使用 Windows 应用 SDK 1.2 或更高版本) |
标头 | dwrite_3.h |