ImageWindow::DrawArc
Draws an arc in the Image Display window
int DrawArc(
int x,
int y,
int radius,
int start,
int end
);
int DrawArc(
double x,
double y,
double radius,
double start,
double end,
ProcUnit *ptrProcUnit,
int imageNo
);
Parameters
x
|
X position coordinate of the center of the arc to be drawn (Pixel)
|
y
|
Y position coordinate of the center of the arc to be drawn (Pixel)
|
radius
|
Radius of the arc to be drawn (Pixel)
|
start
|
Start point angle of the arc to be drawn
|
end
|
End point angle of the arc to be drawn
|
*ptrProcUnit
|
Pointer to processing unit information
|
imageNo
|
Image number
|
Return Value
Returns 0 when an arc is successfully drawn.
Otherwise returns a non-zero value.
Description
Draws an arc with the specified position, radius, and start/end angle in the Image Display window.
Example
int Sample::MeasureDispG(ProcUnit *ptrProcUnit, int subNo, ImageWindow *ptrImageWindow)
{
// Display an arc
ptrImageWindow->DrawArc(100, 100, 50, 10, 170);
// Display an arc
ptrImageWindow->DrawArc(98.5, 85.3, 48.2, 12.6, 173.4, ptrProcUnit, 0);
}