Skip to main content

PushOpacityMask Method

Pushes an opacity mask.

Definition​

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

public DrawingContext.PushedState PushOpacityMask(
IBrush mask,
Rect bounds
)

Parameters​

  IBrush
The opacity mask.
  Rect
The size of the brush's target area. TODO: Are we sure this is needed?

Return Value​

DrawingContext.PushedState
A disposable to undo the opacity mask.

See Also​

Reference​

DrawingContext Class
Avalonia.Media Namespace