ImageWindow::DrawCircle
Draws a circle in the Image Display window
int DrawCircle(
int x,
int y,
int radius
);
int DrawCircle(
double x,
double y,
double radius,
ProcUnit *ptrProcUnit,
int imageNo
);
Parameters
x
|
X position coordinate of the center of the circle to be drawn (Pixel)
|
y
|
Y position coordinate of the center of the circle to be drawn (Pixel)
|
radius
|
Radius of the circle to be drawn (Pixel)
|
*ptrProcUnit
|
Pointer to processing unit information
|
imageNo
|
Image number
|
Return Value
Returns 0 when a circle is successfully drawn.
Otherwise returns a non-zero value.
Description
Draws a circle with the specified position and radius in the Image Display window.
Example
int Sample::MeasureDispG(ProcUnit *ptrProcUnit, int subNo, ImageWindow *ptrImageWindow)
{
// Display a circle
ptrImageWindow->DrawCircle(100, 100, 50);
// Display a circle
ptrImageWindow->DrawCircle(82.5, 79.4, 45.2, ptrProcUnit, 0);
}