ImageWindow::DrawEllipse

Draws an ellipse in the Image Display window

int DrawEllipse(
   int  x,
   int  y,
   int  radiusX,
   int  radiusY
);

int DrawEllipse(
   double       x,
   double       y,
   double       radiusX,
   double       radiusY,
   ProcUnit     *ptrProcUnit,
   int  imageNo
);

Parameters
x
X position coordinate of the center of the ellipse to be drawn (Pixel)
y
Y position coordinate of the center of the ellipse to be drawn (Pixel)
radiusX
Radius of the ellipse to be drawn (Pixel) in the X direction
radiusY
Radius of the ellipse to be drawn (Pixel) in the Y direction
*ptrProcUnit
Pointer to processing unit information
imageNo
Image number

Return Value
Returns 0 when an ellipse is successfully drawn.
Otherwise returns a non-zero value.

Description
Draws an ellipse with the specified position and radius in the Image Display window.

Example
   int Sample::MeasureDispG(ProcUnit *ptrProcUnit, int subNo, ImageWindow *ptrImageWindow)
    {

        // Display an ellipse

        ptrImageWindow->DrawEllipse(100, 100, 50, 30);

        // Display an ellipse

        ptrImageWindow->DrawEllipse(98.5, 96.3, 48.7, 28.6, ptrProcUnit, 0);
    }