set_window_dcT_set_window_dcSetWindowDcSetWindowDcset_window_dc (Operator)

Name

set_window_dcT_set_window_dcSetWindowDcSetWindowDcset_window_dc — Set the device context of a virtual graphics window (Windows NT).

Signature

set_window_dc( : : WindowHandle, WINHDC : )

Herror T_set_window_dc(const Htuple WindowHandle, const Htuple WINHDC)

void SetWindowDc(const HTuple& WindowHandle, const HTuple& WINHDC)

void HWindow::SetWindowDc(void* WINHDC) const

static void HOperatorSet.SetWindowDc(HTuple windowHandle, HTuple WINHDC)

void HWindow.SetWindowDc(IntPtr WINHDC)

def set_window_dc(window_handle: HHandle, winhdc: int) -> None

Description

set_window_dcset_window_dcSetWindowDcSetWindowDcSetWindowDcset_window_dc sets the device context of a window previously opened with new_extern_windownew_extern_windowNewExternWindowNewExternWindowNewExternWindownew_extern_window. All output (disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region, disp_imagedisp_imageDispImageDispImageDispImagedisp_image, etc.) is done in the window with this device context.

The parameter WINHDCWINHDCWINHDCWINHDCWINHDCwinhdc contains the device context of the window in which HALCON should output its data. This device context is used in all output routines of HALCON.

Attention

The window WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle has to be created with new_extern_windownew_extern_windowNewExternWindowNewExternWindowNewExternWindownew_extern_window beforehand.

Execution Information

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Window handle.

WINHDCWINHDCWINHDCWINHDCWINHDCwinhdc (input_control)  pointer HTupleintHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

device context of WINHWnd.

Restriction: WINHDC != 0

Result

If the values of the specified parameters are correct, set_window_dcset_window_dcSetWindowDcSetWindowDcSetWindowDcset_window_dc returns 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

new_extern_windownew_extern_windowNewExternWindowNewExternWindowNewExternWindownew_extern_window

Possible Successors

disp_imagedisp_imageDispImageDispImageDispImagedisp_image, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

See also

new_extern_windownew_extern_windowNewExternWindowNewExternWindowNewExternWindownew_extern_window, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region, disp_imagedisp_imageDispImageDispImageDispImagedisp_image, disp_colordisp_colorDispColorDispColorDispColordisp_color, set_lutset_lutSetLutSetLutSetLutset_lut, query_colorquery_colorQueryColorQueryColorQueryColorquery_color, set_colorset_colorSetColorSetColorSetColorset_color, set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb, set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi, set_pixelset_pixelSetPixelSetPixelSetPixelset_pixel, set_grayset_graySetGraySetGraySetGrayset_gray, set_partset_partSetPartSetPartSetPartset_part, set_part_styleset_part_styleSetPartStyleSetPartStyleSetPartStyleset_part_style, query_window_typequery_window_typeQueryWindowTypeQueryWindowTypeQueryWindowTypequery_window_type, get_window_typeget_window_typeGetWindowTypeGetWindowTypeGetWindowTypeget_window_type, set_window_typeset_window_typeSetWindowTypeSetWindowTypeSetWindowTypeset_window_type, get_mpositionget_mpositionGetMpositionGetMpositionGetMpositionget_mposition, set_tpositionset_tpositionSetTpositionSetTpositionSetTpositionset_tposition, set_window_extentsset_window_extentsSetWindowExtentsSetWindowExtentsSetWindowExtentsset_window_extents, get_window_extentsget_window_extentsGetWindowExtentsGetWindowExtentsGetWindowExtentsget_window_extents, set_window_attrset_window_attrSetWindowAttrSetWindowAttrSetWindowAttrset_window_attr, set_checkset_checkSetCheckSetCheckSetCheckset_check, set_systemset_systemSetSystemSetSystemSetSystemset_system

Module

Foundation