set_window_dcT_set_window_dcSetWindowDcSetWindowDcset_window_dc (算子名称)
名称
set_window_dcT_set_window_dcSetWindowDcSetWindowDcset_window_dc
— Set the device context of a virtual graphics window (Windows NT).
参数签名
描述
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.
注意
The window WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle
has to be created with
new_extern_windownew_extern_windowNewExternWindowNewExternWindowNewExternWindownew_extern_window
beforehand.
运行信息
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
参数表
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
结果
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.
可能的前置算子
new_extern_windownew_extern_windowNewExternWindowNewExternWindowNewExternWindownew_extern_window
可能的后置算子
disp_imagedisp_imageDispImageDispImageDispImagedisp_image
,
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region
参考其它
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
模块
Foundation