ImageWindow::DrawCursor
Draws a cross-shaped cursor in the Image Display window
int DrawCursor(
int x,
int y
);
int DrawCursor(
double x,
double y,
ProcUnit *ptrProcUnit,
int imageNo
);
Parameters
x
|
X position coordinate of the cross-shaped cursor to be drawn (pixel)
|
y
|
Y position coordinate of the cross-shaped cursor to be drawn (pixel)
|
*ptrProcUnit
|
Pointer to processing unit information
|
imageNo
|
Image number
|
Return Value
Returns 0 when a cross-shaped cursor is successfully drawn.
Otherwise returns a non-zero value.
Description
Draws a cross-shaped cursor at the specified position in the Image Display window.
Example
int Sample::MeasureDispG(ProcUnit *ptrProcUnit, int subNo, ImageWindow *ptrImageWindow)
{
// Display a cross-shaped cursor
ptrImageWindow->DrawCursor(100, 200);
// Display a cross-shaped cursor
ptrImageWindow->DrawCursor(95.3, 196.7, ptrProcUnit, 0);
}