OuterGlowBitmapEffect.Opacity 屬性

定義

注意:這個 API 現在已經過時。 非過時的替代方式是 BlurEffect。 取得或設定光暈的不透明度。

public:
 property double Opacity { double get(); void set(double value); };
public double Opacity { get; set; }
member this.Opacity : double with get, set
Public Property Opacity As Double

屬性值

光暈不透明度等級。 值為 0 表示光暈完全透明,而值為 1 表示光暈完全不透明。 值為 0.5 表示光暈 50% 不透明,而值為 0.725 表示光暈 72.5% 不透明,依此類推。 小於 0 的值視為 0,而大於 1 的值則視為 1。 預設值是 1。

備註

下圖示范此屬性的效果:

螢幕擷取畫面:比較光暈不透明度屬性值

您也可以使用 的 GlowColor Alpha 值來指定不透明度。

相依性屬性資訊

識別碼欄位 OpacityProperty
設定為 的中繼資料屬性 true

適用於