Win32 API 日本語リファレンス
ホームStorage.Xps › IXpsOMImageBrush

IXpsOMImageBrush

COM
IID3df0b466-d382-49ef-8550-dd94c80242e4継承元IXpsOMTileBrush自前メソッド開始 vtbl18

メソッド 5

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

vtbl 18 HRESULT GetImageResource(IXpsOMImageResource** imageResource)
imageResourceIXpsOMImageResource**outブラシが使用する画像リソースへのポインタを受け取る。
vtbl 19 HRESULT SetImageResource(IXpsOMImageResource* imageResource)
imageResourceIXpsOMImageResource*in設定する画像リソースを指定する。
vtbl 20 HRESULT GetColorProfileResource(IXpsOMColorProfileResource** colorProfileResource)
colorProfileResourceIXpsOMColorProfileResource**out画像に関連付けられたカラープロファイルリソースへのポインタを受け取る。存在しない場合は NULL を受け取る。
vtbl 21 HRESULT SetColorProfileResource(IXpsOMColorProfileResource* colorProfileResource)
colorProfileResourceIXpsOMColorProfileResource*in設定するカラープロファイルリソースを指定する。不要な場合は NULL を指定する。
vtbl 22 HRESULT Clone(IXpsOMImageBrush** imageBrush)
imageBrushIXpsOMImageBrush**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 指定が可能。