以動畫顯示視覺效果不透明度屬性的值。
語法
HRESULT SetOpacity(
[in] IDCompositionAnimation *animation
);
參數
[in] animation
將用來控制不透明度屬性值的動畫。
傳回值
類型: HRESULT
如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。
需求
| 目標平台 | Windows |
| 標頭 | dcomp.h |
| 程式庫 | Dcomp.lib |
| Dll | Dcomp.dll |
以動畫顯示視覺效果不透明度屬性的值。
HRESULT SetOpacity(
[in] IDCompositionAnimation *animation
);
[in] animation
將用來控制不透明度屬性值的動畫。
類型: HRESULT
如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。
| 目標平台 | Windows |
| 標頭 | dcomp.h |
| 程式庫 | Dcomp.lib |
| Dll | Dcomp.dll |