OverlayBitmap.FontBackColor Property

Returns or sets the background color for OverlayBitmap.DrawText.
Syntax:
[VB.NET]
Public FontBackColor As System.Drawing.Color
[C#]
public System.Drawing.Color FontBackColor;
Limitations:

Run time only.

Remarks:

If the FontBackColor is equal to the DropOutColor, the surrounding solid rectangle of the text (text background) is not visible.

The default value for FontBackColor> is black.

Example:

This example demonstrates how to use the FontBackColor property.

[VB.NET]
Dim ob As OverlayBitmap ob = ICImagingControl1.OverlayBitmap   '   Use a blue background with red text.  ob.FontTransparent = False ob.FontBackColor = System.Drawing.Color.Blue ob.DrawText(System.Drawing.Color.Red, 10, 10, "IC Imaging Control red on blue")
[C#]
OverlayBitmap ob = ICImagingControl1.OverlayBitmap;   //   Use a blue background with red text.  ob.FontTransparent = false; ob.FontBackColor = System.Drawing.Color.Blue; ob.DrawText(System.Drawing.Color.Red, 10, 10, "IC Imaging Control red on blue");
See also: OverlayBitmap, OverlayBitmap.DrawText, OverlayBitmap.Font, OverlayBitmap.FontTransparent

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