ホーム › Graphics.DirectComposition › IDCompositionColorMatrixEffect
IDCompositionColorMatrixEffect
COMメソッド 5
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 4 HRESULT SetMatrix(D2D_MATRIX_5X4_F* matrix)
| matrix | D2D_MATRIX_5X4_F* | in | 色変換に適用する5x4カラーマトリックス(D2D_MATRIX_5X4_F)へのポインタである。 |
vtbl 5 HRESULT SetMatrixElement(INT row, INT column, IDCompositionAnimation* animation)
| row | INT | in | 変更対象要素の行インデックス。0から4の範囲で指定する。 |
| column | INT | in | 変更対象要素の列インデックス。0から3の範囲で指定する。 |
| animation | IDCompositionAnimation* | in | 指定要素の値を時間変化させるアニメーションオブジェクト。NULL不可。 |
| row | INT | in | 変更対象要素の行インデックス。0から4の範囲で指定する。 |
| column | INT | in | 変更対象要素の列インデックス。0から3の範囲で指定する。 |
| value | FLOAT | in | 指定したカラーマトリックス要素に設定する浮動小数点値である。 |
vtbl 7 HRESULT SetAlphaMode(D2D1_COLORMATRIX_ALPHA_MODE mode)
| mode | D2D1_COLORMATRIX_ALPHA_MODE | in | アルファの扱いを指定するD2D1_COLORMATRIX_ALPHA_MODE列挙値である。 |
| clamp | BOOL | in | TRUEで出力を0〜1範囲にクランプするかを指定するフラグである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDCompositionColorMatrixEffect "{C1170A22-3CE2-4966-90D4-55408BFC84C4}" #usecom global IDCompositionColorMatrixEffect IID_IDCompositionColorMatrixEffect "{}" #comfunc global IDCompositionColorMatrixEffect_SetMatrix 4 var #comfunc global IDCompositionColorMatrixEffect_SetMatrixElement 5 int,int,sptr #comfunc global IDCompositionColorMatrixEffect_SetMatrixElement 6 int,int,float #comfunc global IDCompositionColorMatrixEffect_SetAlphaMode 7 int #comfunc global IDCompositionColorMatrixEffect_SetClampOutput 8 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IDCompositionColorMatrixEffect "{C1170A22-3CE2-4966-90D4-55408BFC84C4}" #usecom global IDCompositionColorMatrixEffect IID_IDCompositionColorMatrixEffect "{}" #comfunc global IDCompositionColorMatrixEffect_SetMatrix 4 sptr #comfunc global IDCompositionColorMatrixEffect_SetMatrixElement 5 int,int,sptr #comfunc global IDCompositionColorMatrixEffect_SetMatrixElement 6 int,int,float #comfunc global IDCompositionColorMatrixEffect_SetAlphaMode 7 int #comfunc global IDCompositionColorMatrixEffect_SetClampOutput 8 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。