ホーム › Storage.Xps › IXpsOMImageBrush
IXpsOMImageBrush
COMメソッド 5
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 18 HRESULT GetImageResource(IXpsOMImageResource** imageResource)
| imageResource | IXpsOMImageResource** | out | ブラシが使用する画像リソースへのポインタを受け取る。 |
vtbl 19 HRESULT SetImageResource(IXpsOMImageResource* imageResource)
| imageResource | IXpsOMImageResource* | in | 設定する画像リソースを指定する。 |
vtbl 20 HRESULT GetColorProfileResource(IXpsOMColorProfileResource** colorProfileResource)
| colorProfileResource | IXpsOMColorProfileResource** | out | 画像に関連付けられたカラープロファイルリソースへのポインタを受け取る。存在しない場合は NULL を受け取る。 |
vtbl 21 HRESULT SetColorProfileResource(IXpsOMColorProfileResource* colorProfileResource)
| colorProfileResource | IXpsOMColorProfileResource* | in | 設定するカラープロファイルリソースを指定する。不要な場合は NULL を指定する。 |
vtbl 22 HRESULT Clone(IXpsOMImageBrush** imageBrush)
| imageBrush | IXpsOMImageBrush** | out | 複製された新しい画像ブラシへのポインタを受け取る。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
#define global IID_IXpsOMImageBrush "{3DF0B466-D382-49EF-8550-DD94C80242E4}"
#usecom global IXpsOMImageBrush IID_IXpsOMImageBrush "{}"
#comfunc global IXpsOMImageBrush_GetImageResource 18 sptr
#comfunc global IXpsOMImageBrush_SetImageResource 19 sptr
#comfunc global IXpsOMImageBrush_GetColorProfileResource 20 sptr
#comfunc global IXpsOMImageBrush_SetColorProfileResource 21 sptr
#comfunc global IXpsOMImageBrush_Clone 22 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。