IC Imaging Control .NET

OverlayBitmap.ColorMode Property

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.
public OverlayColorModes ColorMode;

Not available in live mode.


Introduced in version 3.0


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

// 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

Get in touch with us

About The Imaging Source

Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, frame grabbers and video converters for production automation, quality assurance, logistics, medicine, science and security.

Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.

Automated Imaging Association ISO 9001:2015 certified

Contact us