DrawingContext::PushOpacity Method (Double)

 

Pushes the specified opacity setting onto the drawing context.

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

public:
virtual void PushOpacity(
	double opacity
) abstract

Parameters

opacity
Type: System::Double

The opacity factor to apply to subsequent drawing commands. This factor is cumulative with previous PushOpacity operations.

The opacity is blended into all subsequent drawing commands until it is removed by the Pop command.

The following example demonstrates the PushOpacity, PushEffect, and Pop commands.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: