OuterGlowBitmapEffect::Opacity Property

 
obsoleteCodeEntityT:System.Windows.Media.Effects.BlurEffect

Note: This API is now obsolete. The non-obsolete alternative is BlurEffect. Gets or sets the degree of opacity of the halo glow.

Namespace:   System.Windows.Media.Effects
Assembly:  PresentationCore (in PresentationCore.dll)

public:
property double Opacity {
	double get();
	void set(double value);
}

Property Value

Type: System::Double

The opacity level of the glow. A value of 0 indicates that the halo glow is completely transparent, while a value of 1 indicates that the glow is completely opaque. A value of 0.5 indicates the glow is 50 percent opaque, a value of 0.725 indicates the glow is 72.5 percent opaque, and so on. Values less than 0 are treated as 0, while values greater than 1 are treated as 1. The default is 1.

The following illustration demonstrates the effect of this property:

Screenshot: Compare glow opacity property values

Opacity can also be specified using the alpha value of GlowColor.

Identifier field

OpacityProperty

Metadata properties set to true

None

.NET Framework
Available since 3.0
Return to top
Show: