IC Imaging Control ActiveX

OverlayBitmap.DrawText Method

OverlayBitmap.DrawText Method

This method draws text on the live video.

Public Sub DrawText( color As Long, column As Long, row As Long, text As String )
Parameter Description
color, clr

Specifies the color of the text to be written.

column, XStart

Specifies the column in pixel units where the text should start on the live video.

row, YStart

Specifies the row in pixel units where the text should start on the live video


Specifies the text to be written.


Run time only. Only after ICImagingControl.LiveStart has been called once.


The method DrawText draws text on the live video. It uses the currently set Font, FontBackColor and the FontTransparent setting.


This example demonstrates how to draw text at the coordinates (10/10) on the live video.

Dim ob As OverlayBitmap
Set ob = ICImagingControl1.OverlayBitmap
' Print some text with red color. 
ob.DrawText RGB(255, 0, 0), 10, 10, "IC Imaging Control"
See also: OverlayBitmap, OverlayBitmap.Font, OverlayBitmap.FontBackColor, OverlayBitmap.FontTransparent, ICImagingControl.LiveStart, ICImagingControl.LiveStop

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