ID2D1RenderTarget::CreateGradientStopCollection (constD2D1_GRADIENT_STOP*,UINT32,D2D1_GAMMA,D2D1_EXTEND_MODE,ID2D1GradientStopCollection**) 方法 (d2d1.h)
从指定的D2D1_GRADIENT_STOP结构数组创建 ID2D1GradientStopCollection。
语法
HRESULT CreateGradientStopCollection(
const D2D1_GRADIENT_STOP *gradientStops,
UINT32 gradientStopsCount,
D2D1_GAMMA colorInterpolationGamma,
D2D1_EXTEND_MODE extendMode,
ID2D1GradientStopCollection **gradientStopCollection
);
参数
gradientStops
类型:[in] D2D1_GRADIENT_STOP*
指向D2D1_GRADIENT_STOP结构的数组 的 指针。
gradientStopsCount
类型:[in] UINT
一个大于或等于 1 的值,该值指定 gradientStops 数组中的渐变 停止点数。
colorInterpolationGamma
类型:[in] D2D1_GAMMA
执行梯度停止点之间的颜色内插的空间。
extendMode
类型:[in] D2D1_EXTEND_MODE
[0,1] 规范化范围之外的渐变行为。
gradientStopCollection
类型:[out] ID2D1GradientStopCollection**
此方法返回时,包含指向指向新渐变停止点集合的指针的指针。
返回值
类型: HRESULT
如果该方法成功,则返回 S_OK。 否则,它将返回 HRESULT 错误代码。
要求
目标平台 | Windows |
标头 | d2d1.h (包括 D2d1.h) |
Library | D2d1.lib |
DLL | D2d1.dll |
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈