ホーム › Graphics.DirectComposition › IDCompositionMatrixTransform
IDCompositionMatrixTransform
COMメソッド 3
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT SetMatrix(D2D_MATRIX_3X2_F* matrix)
| matrix | D2D_MATRIX_3X2_F* | in | 変換に設定する2x3行列D2D_MATRIX_3X2_Fへのポインタ。 |
vtbl 4 HRESULT SetMatrixElement(INT row, INT column, IDCompositionAnimation* animation)
| row | INT | in | 設定する行列要素の行インデックス(0始まり)。 |
| column | INT | in | 設定する行列要素の列インデックス(0始まり)。 |
| animation | IDCompositionAnimation* | in | 指定要素を駆動するアニメーションへのポインタ。 |
| row | INT | in | 設定する行列要素の行インデックス(0始まり)。 |
| column | INT | in | 設定する行列要素の列インデックス(0始まり)。 |
| value | FLOAT | in | 指定要素に設定する値(FLOAT)。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDCompositionMatrixTransform "{16CDFF07-C503-419C-83F2-0965C7AF1FA6}" #usecom global IDCompositionMatrixTransform IID_IDCompositionMatrixTransform "{}" #comfunc global IDCompositionMatrixTransform_SetMatrix 3 var #comfunc global IDCompositionMatrixTransform_SetMatrixElement 4 int,int,sptr #comfunc global IDCompositionMatrixTransform_SetMatrixElement 5 int,int,float ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IDCompositionMatrixTransform "{16CDFF07-C503-419C-83F2-0965C7AF1FA6}" #usecom global IDCompositionMatrixTransform IID_IDCompositionMatrixTransform "{}" #comfunc global IDCompositionMatrixTransform_SetMatrix 3 sptr #comfunc global IDCompositionMatrixTransform_SetMatrixElement 4 int,int,sptr #comfunc global IDCompositionMatrixTransform_SetMatrixElement 5 int,int,float ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。