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.
Syntax:
[VB.NET]
Public ColorMode As OverlayColorModes
[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. ICImagingControl1.OverlayBitmap.Enable = true; // Force the overlay bitmap to operate in color mode. ICImagingControl1.OverlayBitmap.ColorMode = OverlayColorModes.Color; // Start live video. ICImagingControl1.LiveStart(); ICImagingControl1.OverlayBitmap.Fill( ICImagingControl1.OverlayBitmap.DropOutColor ); // Draw a red line. ICImagingControl1.OverlayBitmap.DrawLine( Color.Red, 0, 0, 100, 100 ); ICImagingControl1.LiveStart();
[VB.NET]
' Set a grayscale video format. IcImagingControl1.VideoFormat = "Y800 (1024x768)" ' Enable the overlay bitmap. IcImagingControl1.OverlayBitmap.Enable = True ' Force the overlay bitmap to operate in color mode. IcImagingControl1.OverlayBitmap.ColorMode = OverlayColorModes.Color ' Start live video. IcImagingControl1.LiveStart() IcImagingControl1.OverlayBitmap.Fill(IcImagingControl1.OverlayBitmap.DropOutColor) ' Draw a red line. IcImagingControl1.OverlayBitmap.DrawLine(Color.Red, 0, 0, 100, 100)
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