IMILBitmapEffectRenderContext
COMメソッド 8
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT SetOutputPixelFormat(GUID* format)
| format | GUID* | in | 出力に使用するピクセルフォーマットを指定する GUID へのポインタである。 |
vtbl 4 HRESULT GetOutputPixelFormat(GUID* pFormat)
| pFormat | GUID* | out | 現在設定されている出力ピクセルフォーマットを表す GUID を受け取る。 |
vtbl 5 HRESULT SetUseSoftwareRenderer(VARIANT_BOOL fSoftware)
| fSoftware | VARIANT_BOOL | in | ソフトウェアレンダラを使用するかどうかを指定する。TRUE でソフトウェアレンダリングを強制する。 |
vtbl 6 HRESULT SetInitialTransform(MILMatrixF* pMatrix)
| pMatrix | MILMatrixF* | in | 初期変換として設定する行列を表す MILMatrixF 構造体へのポインタである。 |
vtbl 7 HRESULT GetFinalTransform(MILMatrixF* pMatrix)
| pMatrix | MILMatrixF* | out | 最終的な変換行列を受け取る MILMatrixF 構造体へのポインタである。 |
| dblDpiX | DOUBLE | in | 出力の水平方向の DPI 値を指定する。 |
| dblDpiY | DOUBLE | in | 出力の垂直方向の DPI 値を指定する。 |
| pdblDpiX | DOUBLE* | out | 出力の水平方向の DPI 値を受け取る。 |
| pdblDpiY | DOUBLE* | out | 出力の垂直方向の DPI 値を受け取る。 |
| pRect | MilRectD* | in | 処理対象とする関心領域 (ROI) の矩形を指定する MilRectD 構造体へのポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IMILBitmapEffectRenderContext "{12A2EC7E-2D33-44B2-B334-1ABB7846E390}" #usecom global IMILBitmapEffectRenderContext IID_IMILBitmapEffectRenderContext "{}" #comfunc global IMILBitmapEffectRenderContext_SetOutputPixelFormat 3 var #comfunc global IMILBitmapEffectRenderContext_GetOutputPixelFormat 4 var #comfunc global IMILBitmapEffectRenderContext_SetUseSoftwareRenderer 5 int #comfunc global IMILBitmapEffectRenderContext_SetInitialTransform 6 var #comfunc global IMILBitmapEffectRenderContext_GetFinalTransform 7 var #comfunc global IMILBitmapEffectRenderContext_SetOutputDPI 8 double,double #comfunc global IMILBitmapEffectRenderContext_GetOutputDPI 9 var,var #comfunc global IMILBitmapEffectRenderContext_SetRegionOfInterest 10 var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IMILBitmapEffectRenderContext "{12A2EC7E-2D33-44B2-B334-1ABB7846E390}" #usecom global IMILBitmapEffectRenderContext IID_IMILBitmapEffectRenderContext "{}" #comfunc global IMILBitmapEffectRenderContext_SetOutputPixelFormat 3 sptr #comfunc global IMILBitmapEffectRenderContext_GetOutputPixelFormat 4 sptr #comfunc global IMILBitmapEffectRenderContext_SetUseSoftwareRenderer 5 int #comfunc global IMILBitmapEffectRenderContext_SetInitialTransform 6 sptr #comfunc global IMILBitmapEffectRenderContext_GetFinalTransform 7 sptr #comfunc global IMILBitmapEffectRenderContext_SetOutputDPI 8 double,double #comfunc global IMILBitmapEffectRenderContext_GetOutputDPI 9 sptr,sptr #comfunc global IMILBitmapEffectRenderContext_SetRegionOfInterest 10 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。