OverlayBitmap.ColorMode Property

Set the color mode of this OverlayBitmap. The color mode determines whether the overlay bitmap is painted in color or in grayscale. The images provided by the video capture device are converted into the selected format before drawing the overlay.
Syntax:
[C#]
public OverlayColorModes ColorMode;
Limitations:

Not available in live mode.

Information:

Introduced in version 3.0

Example:

The following code fragment shows how to draw colored overlay graphics on grayscale live video:

[C#]
// Set a grayscale video format. ICImagingControl1.VideoFormat = "Y800 (1024x768)"; // Enable the overlay bitmap. OverlayBitmap ob = ICImagingControl1.OverlayBitmapAtPath[PathPositions.Device]; ob.Enable = true; // Force the overlay bitmap to operate in color mode. ob.ColorMode = OverlayColorModes.Color; // Start live video. ICImagingControl1.LiveStart(); ob.Fill(ob.DropOutColor); // Draw a red line. ob.DrawLine(Color.Red, 0, 0, 100, 100); ICImagingControl1.LiveStart();
See also: OverlayBitmap, OverlayColorModes

<< ICImagingControl.OverlayBitmap