ImageWindow::DrawFigure
Draws a figure in the Image Display window
int DrawFigure(
FIG_HEADER *figure
);
int DrawFigure(
FIG_HEADER *figure,
ProcUnit *ptrProcUnit,
int imageNo
);
Parameters
*figure
|
Pointer to the memory space for storing the information of the figure to be drawn
|
*ptrProcUnit
|
Pointer to processing unit information
|
imageNo
|
Image number
|
Return Value
Returns 0 when a figure is successfully drawn.
Otherwise returns a non-zero value.
Description
Draws the specified figure in the Image Display window.
Example
int Sample::MeasureDispG(ProcUnit *ptrProcUnit, int subNo, ImageWindow *ptrImageWindow)
{
FIG_HEADER *figure;
// Get the figure information of the measurement region
figure = ptrProcUnit->GetFigureData(1);
// Display a figure
ptrImageWindow->DrawFigure(figure);
// Display a figure
ptrImageWindow->DrawFigure(figure, ptrProcUnit, 0);
}