ImmediateDrawingContextPushOpacity Method

Pushes an opacity value.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public ImmediateDrawingContextPushedState PushOpacity(
	double opacity,
	Rect bounds
)

Parameters

opacity  Double
The opacity.
bounds  Rect
The bounds.

Return Value

ImmediateDrawingContextPushedState
A disposable used to undo the opacity.

See Also