DrawingContextPushOpacityMask Method

Pushes an opacity mask.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public DrawingContextPushedState PushOpacityMask(
	IBrush mask,
	Rect bounds
)

Parameters

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

Return Value

DrawingContextPushedState
A disposable to undo the opacity mask.

See Also