set_line_widthT_set_line_widthSetLineWidthSetLineWidthset_line_width (算子)

名称

set_line_widthT_set_line_widthSetLineWidthSetLineWidthset_line_width — 定义区域轮廓输出的线宽。

签名

set_line_width( : : WindowHandle, Width : )

Herror T_set_line_width(const Htuple WindowHandle, const Htuple Width)

void SetLineWidth(const HTuple& WindowHandle, const HTuple& Width)

void HWindow::SetLineWidth(double Width) const

static void HOperatorSet.SetLineWidth(HTuple windowHandle, HTuple width)

void HWindow.SetLineWidth(double width)

def set_line_width(window_handle: HHandle, width: float) -> None

描述

set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width defines the line width (in pixel) in which a region contour is displayed (e.g., with disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region, disp_linedisp_lineDispLineDispLineDispLinedisp_line, disp_polygondisp_polygonDispPolygonDispPolygonDispPolygondisp_polygon, etc.) The operator get_line_widthget_line_widthGetLineWidthGetLineWidthGetLineWidthget_line_width returns the current value for the window. Some output devices may not allow to change the contour width. If it is possible for the current device, it can be queried with query_line_widthquery_line_widthQueryLineWidthQueryLineWidthQueryLineWidthquery_line_width

注意

The line width is important if the output mode was set to 'margin' (see set_drawset_drawSetDrawSetDrawSetDrawset_draw). If the line width is greater than one, regions may not always be displayed correctly.

执行信息

参数

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

窗口句柄。

WidthWidthWidthWidthwidthwidth (输入控制)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

Line width for region output in contour mode.

默认值: 1.0

限制: Width >= 1.0 && Width <= 2000.0

结果

set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width returns 2 ( H_MSG_TRUE) if the parameter is correct and the window is valid.否则将抛出异常。

可能的前趋

query_line_widthquery_line_widthQueryLineWidthQueryLineWidthQueryLineWidthquery_line_width, get_line_widthget_line_widthGetLineWidthGetLineWidthGetLineWidthget_line_width

可能的后继

disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

另见

get_line_widthget_line_widthGetLineWidthGetLineWidthGetLineWidthget_line_width, query_line_widthquery_line_widthQueryLineWidthQueryLineWidthQueryLineWidthquery_line_width, set_drawset_drawSetDrawSetDrawSetDrawset_draw, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

模块

基础