dlg_draw_circle()

Draws a circle on an image component within a dialog.

Syntax

dlg_draw_circle(handle, x, y, radius, thickness, border, fill)

Parameters

Parameter Type Description
handle String The dialog handle.
x Number X-coordinate of the circle center.
y Number Y-coordinate of the circle center.
radius Number Radius of the circle.
thickness Number Thickness of the circle border.
border Number Whether to draw the border (1 = yes, 0 = no). Optional
fill Number Whether to fill the circle (1 = yes, 0 = no). Optional

Return Value

Examples

hnd = dlg_new("My dialog");
dlg_add_image(hnd);
dlg_comp_size(hnd, 500, 500);
dlg_draw_rect(hnd, 20, 20, 200, 200, 5);
dlg_draw_line(hnd, 20, 20, 200, 200, 5);
dlg_draw_arrow(hnd, 20, 480, 480, 20, 5, 30, 30);
dlg_draw_circle(hnd, 370, 370, 100, 5);
dlg_show(hnd);

See also

dlg_add_image

dlg_draw_line
dlg_draw_arrow
dlg_draw_circle
dlg_draw_rect