disp_circle — 在窗口中显示圆。
disp_circle( : : WindowHandle, Row, Column, Radius : )
disp_circle displays one or several circles in the
output window. A circle is described by the center (Row,
Column) and the radius Radius.
If the used coordinates are not within the window the circle is
clipped accordingly.
The operators used to control the display of regions
(e.g., set_draw, set_gray, set_draw)
can also be used with circles. Several circles can be displayed with
one call by using tuple parameters. For the use of colors with
several circles, see set_color。
The center of the circle must be within the window.
WindowHandle (输入控制) window → (handle)
窗口句柄。
Row (输入控制) circle.center.y(-array) → (real / integer)
中心列索引。
默认值: 64
建议值: 0, 64, 128, 256
值范围:
0
≤
Row
≤
511 (lin)
最小增量: 1
建议增量: 1
Column (输入控制) circle.center.x(-array) → (real / integer)
中心列索引。
默认值: 64
建议值: 0, 64, 128, 256
值范围:
0
≤
Column
≤
511 (lin)
最小增量: 1
建议增量: 1
Radius (输入控制) circle.radius(-array) → (real / integer)
Radius of the circle.
默认值: 64
建议值: 0, 64, 128, 256
值范围:
0
≤
Radius
≤
511 (lin)
最小增量: 1
建议增量: 1
限制:
Radius > 0.0
open_window(0,0,-1,-1,'root','visible','',WindowHandle) set_draw(WindowHandle,'fill') set_color(WindowHandle,'white') repeat get_mbutton(WindowHandle,Row,Column,Button) disp_circle(WindowHandle,Row,Column,(Row + Column) % 50) until(Button == 1) close_window(WindowHandle)
disp_circle 返回 2 ( H_MSG_TRUE )。
open_window,
set_draw,
set_color,
set_colored,
set_line_width,
set_rgb,
set_hsi
disp_ellipse,
disp_region,
gen_circle,
gen_ellipse
open_window,
set_color,
set_draw,
set_rgb,
set_hsi
基础