共用方式為


IDCompositionTableTransferEffect::SetAlphaTableValue (UINT,IDCompositionAnimation*) 方法 (dcomp.h)

設定 Alpha 資料表中的值。

語法

HRESULT SetAlphaTableValue(
  [in] UINT                   index,
  [in] IDCompositionAnimation *animation
);

參數

[in] index

類型: UINT

要變更之值的索引。

[in] animation

類型: IDCompositionAnimation*

動畫,表示 Alpha 資料表中的值隨著時間變化的方式。 此參數不得為 NULL。

傳回值

類型: HRESULT

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

規格需求

需求
目標平台 Windows
標頭 dcomp.h
程式庫 Dcomp.lib
Dll Dcomp.dll

另請參閱

IDCompositionTableTransferEffect