IC Imaging Control ActiveX

OverlayBitmap.FontTransparent Property

OverlayBitmap.FontTransparent Property

Returns or sets the background mode for OverlayBitmap.DrawText.
Syntax:
Public FontTransparent As Boolean
Limitations:

Run time only.

Remarks:

This property is used to return and set the background mode to draw text.

If FontTransparent is set to True, OverlayBitmap.DrawText writes the text without a surrounding solid rectangle. The live video image can be seen through the text. If changing text is repeatedly written to the same position, it becomes unreadable, because the background is not cleared.

If FontTransparent is set to False, OverlayBitmap.DrawText writes the text with a surrounding solid rectangle. The rectangle has the color set with the OverlayBitmap.FontBackColor property. If changing text is repeatedly written to the same position, it stays readable, because the background is overwritten every time. If the FontBackColor is equal to OverlayBitmap.DropOutColor, the surrounding solid rectangle is not visible.

Hint: If changing text is displayed on the live video repeatedly (such as a clock), an application should set FontTransparent to False and OverlayBitmap.FontBackColor to the OverlayBitmap.DropOutColor. In doing so, the text remains readable.

The default value for FontTransparent is False.

Example:

This example demonstrates how to use the FontTransparent property:

Dim ob As OverlayBitmap
Set ob = ICImagingControl1.OverlayBitmap
' Print some text with red color and transparent background. 
ob.FontTransparent = True
ob.DrawText RGB(255, 0, 0), 10, 10, "IC Imaging Control"
See also: OverlayBitmap, OverlayBitmap.DrawText, OverlayBitmap.DropOutColor, OverlayBitmap.FontBackColor

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