IC Imaging Control ActiveX

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 ColorMode As OverlayColorModes

Introduced in IC Imaging Control 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.
ICImagingControl1.OverlayBitmap.Enable = True

' Force the overlay bitmap to be in color mode.
ICImagingControl1.OverlayBitmap.ColorMode = OVERLAY_COLORMODE_COLOR

' Start live video.

' Draw a red line.
ICImagingControl1.OverlayBitmap.DrawLine RGB(255, 0, 0), 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