disp_rectangle1🔗
Short description🔗
disp_rectangle1 — Display of rectangles aligned to the coordinate axes.
Signature🔗
disp_rectangle1( window WindowHandle, rectangle.origin.y Row1, rectangle.origin.x Column1, rectangle.corner.y Row2, rectangle.corner.x Column2 )
Description🔗
disp_rectangle1 displays one or several rectangles in the
output window. A rectangle is described by the upper left corner
(Row1,Column1) and the lower right corner
(Row2,Column2). 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_color, set_gray, set_draw,
set_line_width) can also be used with rectangles. Several
rectangles can be displayed with one call by using tuple parameters.
Execution information🔗
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters🔗
WindowHandle (input_control) window → (handle)
Window handle.
Row1 (input_control) rectangle.origin.y(-array) → (real / integer)
Row index of the upper left corner.
Default: 16
Suggested values: 0, 64, 128, 256, 511
Value range: 0 ≤ Row1 ≤ 511 (lin)
Minimum increment: 1
Recommended increment: 10
Column1 (input_control) rectangle.origin.x(-array) → (real / integer)
Column index of the upper left corner.
Default: 16
Suggested values: 0, 64, 128, 256, 511
Value range: 0 ≤ Column1 ≤ 511 (lin)
Minimum increment: 1
Recommended increment: 10
Row2 (input_control) rectangle.corner.y(-array) → (real / integer)
Row index of the lower right corner.
Default: 48
Suggested values: 0, 64, 128, 256, 511
Value range: 0 ≤ Row2 ≤ 511 (lin)
Minimum increment: 1
Recommended increment: 10
Restriction: Row2 >= Row1
Column2 (input_control) rectangle.corner.x(-array) → (real / integer)
Column index of the lower right corner.
Default: 80
Suggested values: 0, 64, 128, 256, 511
Value range: 0 ≤ Column2 ≤ 511 (lin)
Minimum increment: 1
Recommended increment: 10
Restriction: Column2 >= Column1
Example🔗
(HDevelop)
set_color(WindowHandle,'green')
draw_region(MyRegion,WindowHandle)
smallest_rectangle1(MyRegion,R1,C1,R2,C2)
disp_rectangle1(WindowHandle,R1,C1,R2,C2)
Result🔗
disp_rectangle1 returns 2 (H_MSG_TRUE).
Combinations with other operators🔗
Combinations
Possible predecessors
open_window, set_rgb, set_lut, set_hsi, set_draw, set_color, set_colored, set_line_width
Alternatives
disp_rectangle2, gen_rectangle1, disp_region, disp_line, set_shape
See also
Module🔗
Foundation