ImageWindow::DrawText

Draws string in the Image Display window

int DrawText(
   int  x,
   int  y,
   TCHAR        *format [,
                argment] ...
);

int DrawText(
   int  x,
   int  y,
   ProcUnit     *ptrProcUnit,
   int  imageNo,
   TCHAR        *format [,
                argment] ...
);

Parameters
x
X position coordinate of the string to be drawn (Pixel)
y
Y position coordinate of the string to be drawn (Pixel)
*ptrProcUnit
Pointer to processing unit information
imageNo
Image number
format
Formatting string (compliant with sprintf() specification)
argment
Optional argument (compliant with sprintf() specification)

Return Value
Returns 0 when a string is successfully drawn.
Otherwise returns a non-zero value.

Description
Draws a string at the specified position in the Image Display window.

Example
    int Sample::MeasureDispG(ProcUnit *ptrProcUnit, int subNo, ImageWindow *ptrImageWindow)
    {

        // Display text

        ptrImageWindow.DrawText(100, 200, _T("abcde"));

        // Display text

        ptrImageWindow.DrawText(50, 100, ptrProcUnit, 0, _T("hijkl"));
    }