IDCompositionHueRotationEffect::SetAngle (IDCompositionAnimation*) 方法 (dcomp.h)
设置旋转色调的角度。
语法
HRESULT SetAngle(
[in] IDCompositionAnimation *animation
);
参数
[in] animation
表示角度值随时间变化的动画。 该效果根据以下矩阵公式根据旋转角度 (ー) 计算颜色矩阵:

返回值
类型: HRESULT
如果该方法成功,则返回 S_OK。 否则,将返回 HRESULT 错误代码。
要求
要求 | 值 |
---|---|
目标平台 | Windows |
标头 | dcomp.h |
Library | Dcomp.lib |
DLL | Dcomp.dll |