OverlayBitmap.FontBackColor Property

Returns or sets the background color for OverlayBitmap.DrawText.
Syntax:
[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.

[C#]
OverlayBitmap ob = ICImagingControl1.OverlayBitmapAtPath[PathPositions.Device]; // 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