ClassesClassesClassesClasses | | | | Operators

draw_circledraw_circleDrawCircledraw_circleDrawCircleDrawCircle (Operator)

Name

draw_circledraw_circleDrawCircledraw_circleDrawCircleDrawCircle — Interactive drawing of a circle.

Signature

draw_circle( : : WindowHandle : Row, Column, Radius)

Herror draw_circle(const Hlong WindowHandle, double* Row, double* Column, double* Radius)

Herror T_draw_circle(const Htuple WindowHandle, Htuple* Row, Htuple* Column, Htuple* Radius)

Herror draw_circle(const HTuple& WindowHandle, double* Row, double* Column, double* Radius)

double HWindow::DrawCircle(HTuple* Column, HTuple* Radius) const

void DrawCircle(const HTuple& WindowHandle, HTuple* Row, HTuple* Column, HTuple* Radius)

void HWindow::DrawCircle(double* Row, double* Column, double* Radius) const

void HOperatorSetX.DrawCircle(
[in] VARIANT WindowHandle, [out] VARIANT* Row, [out] VARIANT* Column, [out] VARIANT* Radius)

double HWindowX.DrawCircle(
[out] double* Column, [out] double* Radius)

static void HOperatorSet.DrawCircle(HTuple windowHandle, out HTuple row, out HTuple column, out HTuple radius)

void HWindow.DrawCircle(out double row, out double column, out double radius)

Description

draw_circledraw_circleDrawCircledraw_circleDrawCircleDrawCircle produces the parameter for a circle created interactive by the user in the window.

To create a circle you have to press the mouse button at the location which is used as the center of that circle. While keeping the mouse button pressed, the RadiusRadiusRadiusRadiusRadiusradius's length can be modified through moving the mouse. After another mouse click in the created circle center you can move it. A clicking close to the circular arc you can modify the RadiusRadiusRadiusRadiusRadiusradius of the circle. Pressing the right mouse button terminates the procedure. On OS X draw_circledraw_circleDrawCircledraw_circleDrawCircleDrawCircle can also be terminated by pressing the escape key. After terminating the procedure the circle is not visible in the window any longer.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Window identifier.

RowRowRowRowRowrow (output_control)  circle.center.y HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Barycenter's row index.

ColumnColumnColumnColumnColumncolumn (output_control)  circle.center.x HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Barycenter's column index.

RadiusRadiusRadiusRadiusRadiusradius (output_control)  circle.radius HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Circle's radius.

Example (HDevelop)

read_image(Image,'monkey')
draw_circle(WindowHandle,Row,Column,Radius)
gen_circle(Circle,Row,Column,Radius)
reduce_domain(Image,Circle,ImageReduced)
invert_image (ImageReduced, ImageInvert)
dev_display (ImageInvert)

Example (C)

read_image(&Image,"monkey") ;
draw_circle(WindowHandle,&Row,&Column,&Radius) ;
gen_circle(&Circle,Row,Column,Radius) ;
reduce_domain(Image,Circle,&GrayCircle) ;
disp_image(GrayCircle,WindowHandle) ;

Example (HDevelop)

read_image(Image,'monkey')
draw_circle(WindowHandle,Row,Column,Radius)
gen_circle(Circle,Row,Column,Radius)
reduce_domain(Image,Circle,ImageReduced)
invert_image (ImageReduced, ImageInvert)
dev_display (ImageInvert)

Example (HDevelop)

read_image(Image,'monkey')
draw_circle(WindowHandle,Row,Column,Radius)
gen_circle(Circle,Row,Column,Radius)
reduce_domain(Image,Circle,ImageReduced)
invert_image (ImageReduced, ImageInvert)
dev_display (ImageInvert)

Example (HDevelop)

read_image(Image,'monkey')
draw_circle(WindowHandle,Row,Column,Radius)
gen_circle(Circle,Row,Column,Radius)
reduce_domain(Image,Circle,ImageReduced)
invert_image (ImageReduced, ImageInvert)
dev_display (ImageInvert)

Example (HDevelop)

read_image(Image,'monkey')
draw_circle(WindowHandle,Row,Column,Radius)
gen_circle(Circle,Row,Column,Radius)
reduce_domain(Image,Circle,ImageReduced)
invert_image (ImageReduced, ImageInvert)
dev_display (ImageInvert)

Result

draw_circledraw_circleDrawCircledraw_circleDrawCircleDrawCircle returns 2 (H_MSG_TRUE) if the window is valid and the needed drawing mode (see set_insertset_insertSetInsertset_insertSetInsertSetInsert) is available. If necessary, an exception is raised.

Possible Predecessors

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow

Possible Successors

reduce_domainreduce_domainReduceDomainreduce_domainReduceDomainReduceDomain, disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion, set_coloredset_coloredSetColoredset_coloredSetColoredSetColored, set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth, set_drawset_drawSetDrawset_drawSetDrawSetDraw, set_insertset_insertSetInsertset_insertSetInsertSetInsert

Alternatives

draw_circle_moddraw_circle_modDrawCircleModdraw_circle_modDrawCircleModDrawCircleMod, draw_ellipsedraw_ellipseDrawEllipsedraw_ellipseDrawEllipseDrawEllipse, draw_regiondraw_regionDrawRegiondraw_regionDrawRegionDrawRegion

See also

gen_circlegen_circleGenCirclegen_circleGenCircleGenCircle, draw_rectangle1draw_rectangle1DrawRectangle1draw_rectangle1DrawRectangle1DrawRectangle1, draw_rectangle2draw_rectangle2DrawRectangle2draw_rectangle2DrawRectangle2DrawRectangle2, draw_polygondraw_polygonDrawPolygondraw_polygonDrawPolygonDrawPolygon, set_insertset_insertSetInsertset_insertSetInsertSetInsert

Module

Foundation


ClassesClassesClassesClasses | | | | Operators