set_drawT_set_drawSetDrawSetDrawset_draw (算子名称)
名称
set_drawT_set_drawSetDrawSetDrawset_draw — Define the region fill mode.
参数签名
描述
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 (input_control) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Window handle.
ModeModeModeModemodemode (input_control) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Fill mode for region output.
Default:
'fill'
"fill"
"fill"
"fill"
"fill"
"fill"
List of values:
'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. Otherwise an exception is
raised.
可能的前置算子
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
模块
Foundation