OverlayBitmap.DrawText Method

This method draws text on the live video.
Syntax:
[C#]
public void DrawText( System.Drawing.Color clr, int XStart, int YStart, String text );
Parameter Description
color, clr

Specifies the color of the text to be written.

column, XStart

Specifies the column in pixel units where the text should start on the live video.

row, YStart

Specifies the row in pixel units where the text should start on the live video

text

Specifies the text to be written.

Limitations:

Run time only. Only after ICImagingControl.LiveStart has been called once.

Remarks:

The method DrawText draws text on the live video. It uses the currently set Font, FontBackColor and the FontTransparent setting.

Example:

This example demonstrates how to draw text at the coordinates (10/10) on the live video.

[C#]
OverlayBitmap ob = ICImagingControl1.OverlayBitmapAtPath[PathPositions.Device]; // Print some text in red. ob.DrawText(Color.FromArgb(255, 0, 0), 10, 10, "IC Imaging Control");
See also: OverlayBitmap, OverlayBitmap.Font, OverlayBitmap.FontBackColor, OverlayBitmap.FontTransparent, ICImagingControl.LiveStart, ICImagingControl.LiveStop

<< ICImagingControl.OverlayBitmap