ImmediateDrawingContextPushOpacity Method
Pushes an opacity value.
Namespace: Avalonia.MediaAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public ImmediateDrawingContextPushedState PushOpacity(
double opacity,
Rect bounds
)
Public Function PushOpacity (
opacity As Double,
bounds As Rect
) As ImmediateDrawingContextPushedState
member PushOpacity :
opacity : float *
bounds : Rect -> ImmediateDrawingContextPushedState
- opacity Double
- The opacity.
- bounds Rect
- The bounds.
ImmediateDrawingContextPushedStateA disposable used to undo the opacity.