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:
Public ColorMode As OverlayColorModes
Information:

Introduced in IC Imaging Control 3.0

Example:

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.
ICImagingControl1.LiveStart
 
' Draw a red line.
ICImagingControl1.OverlayBitmap.DrawLine RGB(255, 0, 0), 0, 0, 100, 100
See also: OverlayBitmap, OverlayColorModes

<< ICImagingControl.OverlayBitmap

This site is part of The Imaging Source Network. Other sites include Company Portal, Image Processing, Astronomy Cameras, Astronomy Cameras Blog, Blog caméras d'astronomie, Astronomy Cameras Competition, TX Text Control, TX Text Control Blog and Forums.