DrawingContextPushOpacityMask Method
Pushes an opacity mask.
Namespace: Avalonia.MediaAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public DrawingContextPushedState PushOpacityMask(
IBrush mask,
Rect bounds
)
Public Function PushOpacityMask (
mask As IBrush,
bounds As Rect
) As DrawingContextPushedState
member PushOpacityMask :
mask : IBrush *
bounds : Rect -> DrawingContextPushedState
- mask IBrush
- The opacity mask.
- bounds Rect
-
The size of the brush's target area. TODO: Are we sure this is needed?
DrawingContextPushedStateA disposable to undo the opacity mask.