ImageWindow::SetDrawStyle

Sets style of a figure to be drawn in the Image Display window

int SetDrawStyle(
   int  style,
   int  width,
   int  colorKind
);

int SetDrawStyle(
   int  style,
   int  width,
   COLORREF     color
);

Parameters
style
Style of the figure to be drawn
PS_SOLID: Solid
PS_DASH: Dotted (enabled when the pen width is 1 or smaller)
width
Line width of the figure to be drawn
colorKind
Color of the figure to be drawn
1 (JUDGE_OK): OK color
-1 (JUDGE_NG): NG color
0 (JUDGE_NC): Gray
color
Color of the figure to be drawn

Return Value
Returns 0 when the draw style of the figure is successfully set.
Otherwise returns a non-zero value.

Description
Sets the draw style of the figure to be displayed 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);

        // Set the style of the figure to be drawn

        ptrImageWindow->SetDrawStyle(PS_SOLID, 1, ptrProcUnit->GetUnitJudge());

        // Display a figure

        ptrImageWindow->DrawFigure(figure);

        // Set the style of the figure to be drawn (blue dotted line)

        ptrImageWindow->SetDrawStyle(PS_DASH, 1, RGB(0,0,255));

        // Display a figure

        ptrImageWindow->DrawFigure(figure);
    }