disp_rectangle1T_disp_rectangle1DispRectangle1DispRectangle1disp_rectangle1 (算子)

名称

disp_rectangle1T_disp_rectangle1DispRectangle1DispRectangle1disp_rectangle1 — 显示与坐标轴对齐的矩形。

签名

disp_rectangle1( : : WindowHandle, Row1, Column1, Row2, Column2 : )

Herror T_disp_rectangle1(const Htuple WindowHandle, const Htuple Row1, const Htuple Column1, const Htuple Row2, const Htuple Column2)

void DispRectangle1(const HTuple& WindowHandle, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2)

void HWindow::DispRectangle1(const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2) const

void HWindow::DispRectangle1(double Row1, double Column1, double Row2, double Column2) const

static void HOperatorSet.DispRectangle1(HTuple windowHandle, HTuple row1, HTuple column1, HTuple row2, HTuple column2)

void HWindow.DispRectangle1(HTuple row1, HTuple column1, HTuple row2, HTuple column2)

void HWindow.DispRectangle1(double row1, double column1, double row2, double column2)

def disp_rectangle1(window_handle: HHandle, row_1: MaybeSequence[Union[int, float]], column_1: MaybeSequence[Union[int, float]], row_2: MaybeSequence[Union[int, float]], column_2: MaybeSequence[Union[int, float]]) -> None

描述

disp_rectangle1disp_rectangle1DispRectangle1DispRectangle1DispRectangle1disp_rectangle1 displays one or several rectangles in the output window. A rectangle is described by the upper left corner (Row1Row1Row1Row1row1row_1,Column1Column1Column1Column1column1column_1) and the lower right corner (Row2Row2Row2Row2row2row_2,Column2Column2Column2Column2column2column_2). If the given coordinates are not within the boundary of the window the rectangle is clipped accordingly. The operators used to control the display of regions (e.g., set_colorset_colorSetColorSetColorSetColorset_color, set_grayset_graySetGraySetGraySetGrayset_gray, set_drawset_drawSetDrawSetDrawSetDrawset_draw, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width) can also be used with rectangles. Several rectangles can be displayed with one call by using tuple parameters.

执行信息

参数

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

窗口句柄。

Row1Row1Row1Row1row1row_1 (输入控制)  rectangle.origin.y(-array) HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Row index of the upper left corner.

默认值: 16

建议值: 0, 64, 128, 256, 511

值范围: 0 ≤ Row1 Row1 Row1 Row1 row1 row_1 ≤ 511 (lin)

最小增量: 1

建议增量: 10

Column1Column1Column1Column1column1column_1 (输入控制)  rectangle.origin.x(-array) HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Column index of the upper left corner.

默认值: 16

建议值: 0, 64, 128, 256, 511

值范围: 0 ≤ Column1 Column1 Column1 Column1 column1 column_1 ≤ 511 (lin)

最小增量: 1

建议增量: 10

Row2Row2Row2Row2row2row_2 (输入控制)  rectangle.corner.y(-array) HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Row index of the lower right corner.

默认值: 48

建议值: 0, 64, 128, 256, 511

值范围: 0 ≤ Row2 Row2 Row2 Row2 row2 row_2 ≤ 511 (lin)

最小增量: 1

建议增量: 10

限制: Row2 >= Row1

Column2Column2Column2Column2column2column_2 (输入控制)  rectangle.corner.x(-array) HTupleMaybeSequence[Union[int, float]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Column index of the lower right corner.

默认值: 80

建议值: 0, 64, 128, 256, 511

值范围: 0 ≤ Column2 Column2 Column2 Column2 column2 column_2 ≤ 511 (lin)

最小增量: 1

建议增量: 10

限制: Column2 >= Column1

示例(HDevelop)

set_color(WindowHandle,'green')
draw_region(MyRegion,WindowHandle)
smallest_rectangle1(MyRegion,R1,C1,R2,C2)
disp_rectangle1(WindowHandle,R1,C1,R2,C2)

结果

disp_rectangle1disp_rectangle1DispRectangle1DispRectangle1DispRectangle1disp_rectangle1 返回 2 ( H_MSG_TRUE )。

可能的前趋

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb, set_lutset_lutSetLutSetLutSetLutset_lut, set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi, set_drawset_drawSetDrawSetDrawSetDrawset_draw, set_colorset_colorSetColorSetColorSetColorset_color, set_coloredset_coloredSetColoredSetColoredSetColoredset_colored, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width

替代

disp_rectangle2disp_rectangle2DispRectangle2DispRectangle2DispRectangle2disp_rectangle2, gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1GenRectangle1gen_rectangle1, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region, disp_linedisp_lineDispLineDispLineDispLinedisp_line, set_shapeset_shapeSetShapeSetShapeSetShapeset_shape

另见

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, set_colorset_colorSetColorSetColorSetColorset_color, set_drawset_drawSetDrawSetDrawSetDrawset_draw, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width

模块

基础