Skip to main content

PushOpacity Method

Pushes an opacity value.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public ImmediateDrawingContext.PushedState PushOpacity(
double opacity,
Rect bounds
)

Parameters

  Double
The opacity.
  Rect
The bounds.

Return Value

ImmediateDrawingContext.PushedState
A disposable used to undo the opacity.

See Also

Reference

ImmediateDrawingContext Class
Avalonia.Media Namespace