バージョン

ImageTransparentColor プロパティ

イメージ内で透明色として表示される色を取得または設定します。
シンタックス
'宣言
 
Public Property ImageTransparentColor As Color
public Color ImageTransparentColor {get; set;}
解説

Color.Transparent (デフォルト) 以外の色に設定すると、イメージ内のその色がすべて透明になります。

Appearance.Image プロパティを Imagelist のインデックスに設定する方法でイメージを提供している場合は、最初に ImageList の TransparentColor プロパティが最初に参照されます。そのプロパティが Color.TransparentColor に設定されていれば、コンポーネントの ImageTransparentColor が使用されます。それが Color.TransparentColor に設定されている場合、カラー マスキングは行われません。

Appearance.Image プロパティをイメージに設定する方法でイメージを提供している場合は、コンポーネントの ImageTransparentColor が使用されます。それが Color.TransparentColor に設定されている場合、カラー マスキングは行われません。

参照