Skip to main content

PushOpacity Method

Pushes an opacity value.

Definition​

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

public DrawingContext.PushedState PushOpacity(
double opacity
)

Parameters​

  Double
The opacity.

Return Value​

DrawingContext.PushedState
A disposable used to undo the opacity.

See Also​

Reference​

DrawingContext Class
Avalonia.Media Namespace