set_drawT_set_drawSetDrawSetDrawset_draw (算子)
名称
set_drawT_set_drawSetDrawSetDrawset_draw — 定义区域填充模式。
签名
描述
set_drawset_drawSetDrawSetDrawSetDrawset_draw defines the region fill mode. If
ModeModeModeModemodemode is set to 'fill', output regions are filled, if set
to 'margin', only contours are displayed. Setting ModeModeModeModemodemode
only affects the valid window. It is used by operators with region
output like disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region, disp_circledisp_circleDispCircleDispCircleDispCircledisp_circle,
disp_rectangle1disp_rectangle1DispRectangle1DispRectangle1DispRectangle1disp_rectangle1, disp_rectangle2disp_rectangle2DispRectangle2DispRectangle2DispRectangle2disp_rectangle2,
disp_arrowdisp_arrowDispArrowDispArrowDispArrowdisp_arrow etc.
It is also used by operators with gray value output for some gray value
output modes. If the mode is 'margin', the contour can
be affected with set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width and set_line_styleset_line_styleSetLineStyleSetLineStyleSetLineStyleset_line_style。
注意
If the output mode is 'margin' and the line width is more than one,
objects may not be displayed.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
窗口句柄。
ModeModeModeModemodemode (输入控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Fill mode for region output.
默认值:
'fill'
"fill"
"fill"
"fill"
"fill"
"fill"
值列表:
'fill'"fill""fill""fill""fill""fill", 'margin'"margin""margin""margin""margin""margin"
结果
set_drawset_drawSetDrawSetDrawSetDrawset_draw returns 2 (
H_MSG_TRUE)
if ModeModeModeModemodemode
is correct and the window is valid.否则将抛出异常。
可能的前趋
get_drawget_drawGetDrawGetDrawGetDrawget_draw
可能的后继
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region
另见
get_drawget_drawGetDrawGetDrawGetDrawget_draw,
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region,
set_paintset_paintSetPaintSetPaintSetPaintset_paint,
disp_imagedisp_imageDispImageDispImageDispImagedisp_image,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width,
set_line_styleset_line_styleSetLineStyleSetLineStyleSetLineStyleset_line_style
模块
基础