OverlayBitmap.FontBackColor Property

OverlayBitmap.DrawTextクラスライブラリリファレンス>クラス>OverlayBitmap>OverlayBitmap.DrawText Methodのバックグラウンドカラー(背景色)を返す、または設定します。

構文

[VB.NET]
Public FontBackColor As System.Drawing.Color
[C#]
public System.Drawing.Color FontBackColor;

制限

ランタイムオンリー

備考

FontBackColor がDropOutColorクラスライブラリリファレンス>クラス>OverlayBitmap>OverlayBitmap.DropOutColor Propertyと同じ色の場合、テキストの背景にある長方形が表示されることはありません。

デフォルトのFontBackColorはblackです。

サンプル

こちらの例ではFontBackColor プロパティの使い方を紹介しています。

[VB.NET]
Dim ob As OverlayBitmap
ob = IcImagingControl1.OverlayBitmap

'   テキストの色を赤に、背景色を青に設定する
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;

//   テキストの色を赤に、背景色を青に設定する
ob.FontTransparent = false;
ob.FontBackColor = System.Drawing.Color.Blue;
ob.DrawText(System.Drawing.Color.Red, 10, 10,"IC Imaging Control red on blue");