get_window_background_imageGetWindowBackgroundImageGetWindowBackgroundImageget_window_background_imageT_get_window_background_image
説明
get_window_background_imageGetWindowBackgroundImageGetWindowBackgroundImageget_window_background_imageT_get_window_background_image — HALCON ウィンドウの背景画像のコピーを取得する。
書式
get_window_background_image( out image BackgroundImage, window WindowHandle )void GetWindowBackgroundImage( HObject* BackgroundImage, const HTuple& WindowHandle )static void HOperatorSet.GetWindowBackgroundImage( out HObject backgroundImage, HTuple windowHandle )def get_window_background_image( window_handle: HHandle ) -> HObject
Herror T_get_window_background_image( Hobject* BackgroundImage, const Htuple WindowHandle )
HImage HWindow::GetWindowBackgroundImage( ) const
HImage HWindow.GetWindowBackgroundImage( )
説明
get_window_background_imageGetWindowBackgroundImage は、 WindowHandlewindowHandlewindow_handle で与えられた
HALCON ウィンドウに設定されている背景画像のコピーを画像 BackgroundImagebackgroundImagebackground_image に
返します。このオペレーターは、特に、ユーザーがウィンドウにアタッチされている描画
オブジェクトのコールバック関数で操作を実行する場合に役立ちます。
詳細については、set_drawing_object_callbackSetDrawingObjectCallback を参照してください。
実行情報
実行情報
パラメーター
BackgroundImagebackgroundImagebackground_image (output_object) (multichannel-)image → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HImage (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)Hobject * (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)
背景画像のコピー
WindowHandlewindowHandlewindow_handle (input_control) window → (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)
ウィンドウハンドル
結果
ウィンドウが存在し、指定されたパラメーターが正しい場合、
get_window_background_imageGetWindowBackgroundImage は 2 (H_MSG_TRUE) を返します。必要に応じ
て、例外が発生します。
他のオペレーターとの組み合わせ
組み合わせ
前処理の候補
attach_background_to_windowAttachBackgroundToWindow
後処理の候補
close_windowCloseWindow, detach_background_from_windowDetachBackgroundFromWindow, attach_drawing_object_to_windowAttachDrawingObjectToWindow
関連項目
attach_background_to_windowAttachBackgroundToWindow, detach_drawing_object_from_windowDetachDrawingObjectFromWindow
モジュール
Foundation