Win32 API 日本語リファレンス
ホームGraphics.DirectComposition › IDCompositionLinearTransferEffect

IDCompositionLinearTransferEffect

COM
IID4305ee5b-c4a0-4c88-9385-67124e017683継承元IDCompositionFilterEffect自前メソッド開始 vtbl4

公式ドキュメント

linear transfer エフェクトは、各チャネルに対して指定した値のリストから作成される線形関数を使用して、画像の色の強度をマッピングするために使用します。

メソッド 21

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 4 HRESULT SetRedYIntercept(IDCompositionAnimation* animation)
animationIDCompositionAnimation*in赤チャンネルのY切片を時間変化させるアニメーションオブジェクト。NULL不可。
vtbl 5 HRESULT SetRedYIntercept(FLOAT redYIntercept)
redYInterceptFLOATin赤チャンネル線形変換のY切片。入力0時の出力値を示す浮動小数点値である。
vtbl 6 HRESULT SetRedSlope(IDCompositionAnimation* animation)
animationIDCompositionAnimation*in赤チャンネルの傾きを時間変化させるアニメーションオブジェクト。NULL不可。
vtbl 7 HRESULT SetRedSlope(FLOAT redSlope)
redSlopeFLOATin赤チャンネル線形変換の傾き(係数)を示す浮動小数点値である。
vtbl 8 HRESULT SetRedDisable(BOOL redDisable)

転送関数を赤チャネルに適用するかどうかを指定します。(IDCompositionLinearTransferEffect.SetRedDisable)

redDisableBOOLin転送関数を赤チャネルに適用するかどうかを指定するブール値です。 TRUE を指定した場合、エフェクトは赤チャネルに転送関数を適用しません。FALSE を指定した場合、エフェクトは赤チャネルに RedLinearTransfer 関数を適用します。

戻り値

型: HRESULT

このメソッドが成功した場合は S_OK を返します。それ以外の場合は HRESULT エラーコードを返します。

vtbl 9 HRESULT SetGreenYIntercept(IDCompositionAnimation* animation)
animationIDCompositionAnimation*in緑チャンネルのY切片を時間変化させるアニメーションオブジェクト。NULL不可。
vtbl 10 HRESULT SetGreenYIntercept(FLOAT greenYIntercept)
greenYInterceptFLOATin緑チャンネル線形変換のY切片。入力0時の出力値を示す浮動小数点値である。
vtbl 11 HRESULT SetGreenSlope(IDCompositionAnimation* animation)
animationIDCompositionAnimation*in緑チャンネルの傾きを時間変化させるアニメーションオブジェクト。NULL不可。
vtbl 12 HRESULT SetGreenSlope(FLOAT greenSlope)
greenSlopeFLOATin緑チャンネル線形変換の傾き(係数)を示す浮動小数点値である。
vtbl 13 HRESULT SetGreenDisable(BOOL greenDisable)

IDCompositionLinearTransferEffect::SetGreenDisable メソッドは、転送関数を緑チャネルに適用するかどうかを指定します。

greenDisableBOOLin転送関数を緑チャネルに適用するかどうかを指定するブール値です。 TRUE を指定した場合、エフェクトは緑チャネルに転送関数を適用しません。FALSE を指定した場合、緑チャネルに GreenLinearTransfer 関数を適用します。

戻り値

型: HRESULT

このメソッドが成功した場合は S_OK を返します。それ以外の場合は HRESULT エラーコードを返します。

vtbl 14 HRESULT SetBlueYIntercept(IDCompositionAnimation* animation)
animationIDCompositionAnimation*in青チャンネルのY切片を時間変化させるアニメーションオブジェクト。NULL不可。
vtbl 15 HRESULT SetBlueYIntercept(FLOAT blueYIntercept)
blueYInterceptFLOATin青チャンネル線形変換のY切片。入力0時の出力値を示す浮動小数点値である。
vtbl 16 HRESULT SetBlueSlope(IDCompositionAnimation* animation)
animationIDCompositionAnimation*in青チャンネルの傾きを時間変化させるアニメーションオブジェクト。NULL不可。
vtbl 17 HRESULT SetBlueSlope(FLOAT blueSlope)
blueSlopeFLOATin青チャンネル線形変換の傾き(係数)を示す浮動小数点値である。
vtbl 18 HRESULT SetBlueDisable(BOOL blueDisable)

IDCompositionLinearTransferEffect::SetBlueDisable メソッドは、転送関数を青チャネルに適用するかどうかを指定します。

blueDisableBOOLin転送関数を青チャネルに適用するかどうかを指定するブール値です。 TRUE を指定した場合、エフェクトは青チャネルに転送関数を適用しません。FALSE を指定した場合、青チャネルに BlueLinearTransfer 関数を適用します。

戻り値

型: HRESULT

このメソッドが成功した場合は S_OK を返します。それ以外の場合は HRESULT エラーコードを返します。

vtbl 19 HRESULT SetAlphaYIntercept(IDCompositionAnimation* animation)
animationIDCompositionAnimation*inアルファのY切片を時間変化させるアニメーションオブジェクト。NULL不可。
vtbl 20 HRESULT SetAlphaYIntercept(FLOAT alphaYIntercept)
alphaYInterceptFLOATinアルファチャンネル線形変換のY切片。入力0時の出力値を示す浮動小数点値である。
vtbl 21 HRESULT SetAlphaSlope(IDCompositionAnimation* animation)
animationIDCompositionAnimation*inアルファの傾きを時間変化させるアニメーションオブジェクト。NULL不可。
vtbl 22 HRESULT SetAlphaSlope(FLOAT alphaSlope)
alphaSlopeFLOATinアルファチャンネル線形変換の傾き(係数)を示す浮動小数点値である。
vtbl 23 HRESULT SetAlphaDisable(BOOL alphaDisable)

転送関数をアルファチャネルに適用するかどうかを指定します。

alphaDisableBOOLin転送関数をアルファチャネルに適用するかどうかを指定するブール値です。 TRUE を指定した場合、エフェクトはアルファチャネルに転送関数を適用しません。FALSE を指定した場合、アルファチャネルに AlphaLinearTransfer 関数を適用します。

戻り値

型: HRESULT

このメソッドが成功した場合は S_OK を返します。それ以外の場合は HRESULT エラーコードを返します。

vtbl 24 HRESULT SetClampOutput(BOOL clampOutput)

IDCompositionLinearTransferEffect::SetClampOutput メソッドは、グラフ内の次のエフェクトに値を渡す前に、エフェクトが色の値を 0 から 1 の範囲にクランプするかどうかを指定します。

clampOutputBOOLinグラフ内の次のエフェクトに値を渡す前に、エフェクトが色の値を 0 から 1 の範囲にクランプするかどうかを指定するブール値です。 TRUE を指定した場合、エフェクトは値をクランプします。FALSE を指定した場合、エフェクトは色の値をクランプしませんが、精度が十分でない場合は他のエフェクトや出力 サーフェスが値をクランプする可能性があります。

戻り値

型: HRESULT

このメソッドが成功した場合は S_OK を返します。それ以外の場合は HRESULT エラーコードを返します。

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"

#define global IID_IDCompositionLinearTransferEffect "{4305EE5B-C4A0-4C88-9385-67124E017683}"
#usecom global IDCompositionLinearTransferEffect IID_IDCompositionLinearTransferEffect "{}"
#comfunc global IDCompositionLinearTransferEffect_SetRedYIntercept    4 sptr
#comfunc global IDCompositionLinearTransferEffect_SetRedYIntercept    5 float
#comfunc global IDCompositionLinearTransferEffect_SetRedSlope         6 sptr
#comfunc global IDCompositionLinearTransferEffect_SetRedSlope         7 float
#comfunc global IDCompositionLinearTransferEffect_SetRedDisable       8 int
#comfunc global IDCompositionLinearTransferEffect_SetGreenYIntercept  9 sptr
#comfunc global IDCompositionLinearTransferEffect_SetGreenYIntercept  10 float
#comfunc global IDCompositionLinearTransferEffect_SetGreenSlope       11 sptr
#comfunc global IDCompositionLinearTransferEffect_SetGreenSlope       12 float
#comfunc global IDCompositionLinearTransferEffect_SetGreenDisable     13 int
#comfunc global IDCompositionLinearTransferEffect_SetBlueYIntercept   14 sptr
#comfunc global IDCompositionLinearTransferEffect_SetBlueYIntercept   15 float
#comfunc global IDCompositionLinearTransferEffect_SetBlueSlope        16 sptr
#comfunc global IDCompositionLinearTransferEffect_SetBlueSlope        17 float
#comfunc global IDCompositionLinearTransferEffect_SetBlueDisable      18 int
#comfunc global IDCompositionLinearTransferEffect_SetAlphaYIntercept  19 sptr
#comfunc global IDCompositionLinearTransferEffect_SetAlphaYIntercept  20 float
#comfunc global IDCompositionLinearTransferEffect_SetAlphaSlope       21 sptr
#comfunc global IDCompositionLinearTransferEffect_SetAlphaSlope       22 float
#comfunc global IDCompositionLinearTransferEffect_SetAlphaDisable     23 int
#comfunc global IDCompositionLinearTransferEffect_SetClampOutput      24 int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。