OverlayBitmap

An OverlayBitmap object contains the overlay data, methods and properties for drawing text and graphics on the live video stream.

Example

Dim ob As OverlayBitmap
Set ob = ICImagingControl1.OverlayBitmap
' Enable the overlay bitmap for drawing.
ob.Enable = True
' Set magenta as dropout color.
ob.DropOutColor = RGB(255, 0, 255)
' Fill the overlay bitmap with the dropout color.
ob.Fill ob.DropOutColor

' Print some text with red color.
ob.FontTransparent = True
ob.DrawText RGB(255, 0, 0), 10, 10, "IC Imaging Control 2.0"

Information

    Introduced in IC Imaging Control 1.x

Properties

Property Description
ColorMode

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.

DropOutColor

Returns or sets the current dropout color.

Enable

Returns or sets the currently enabled state of the overlay bitmap.

FlipVertical

Returns or sets vertical flipping of the overlay bitmap.

Font

Returns or sets the font for OverlayBitmap.DrawText.

FontBackColor

Returns or sets the background color for OverlayBitmap.DrawText.

FontTransparent

Returns or sets the background mode for OverlayBitmap.DrawText.

OverlayFrameType

This property returns the actual image format of the overlay bitmap.

PathPosition

Returns the path position of this OverlayBitmap.

Methods

Method Description
DrawFrameEllipse

This method draws an empty frame ellipse on the live video.

DrawFrameRect

This method draws an empty frame rectangle on the live video.

DrawLine

This method draws a line on the live video.

DrawSolidEllipse

This method draws a solid, filled ellipse on the live video.

DrawSolidRect

This method draws a solid, filled rectangle on the live video.

DrawText

This method draws text on the live video.

Fill

This method fills the entire overlay bitmap with the passed color.

GetDC

This method returns the device context of the OverlayBitmap object.

ReleaseDC

This method releases the device context of the OverlayBitmap object.

<< Classes