DrawingContext.

PushOpacityMask(IBrush, Rect) Method

Summary

Pushes an opacity mask.
Namespace
Avalonia.Media
Containing Type
DrawingContext

Syntax

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

Parameters

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

Return Value

Type Description
DrawingContext.PushedState A disposable to undo the opacity mask.