|
|
|
@ -358,6 +358,10 @@ namespace Avalonia.Media |
|
|
|
{ |
|
|
|
PlatformImpl.PushOpacity(opacity); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
Logger.TryGet(LogEventLevel.Warning)?.Log(LogArea.DrawingContext, this, "Invalid Opacity Parameters"); |
|
|
|
} |
|
|
|
|
|
|
|
return new PushedState(this, PushedState.PushedStateType.Opacity); |
|
|
|
} |
|
|
|
@ -376,6 +380,10 @@ namespace Avalonia.Media |
|
|
|
{ |
|
|
|
PlatformImpl.PushOpacityMask(mask, bounds); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
Logger.TryGet(LogEventLevel.Warning)?.Log(LogArea.DrawingContext, this, "Invalid OpacityMask Parameters"); |
|
|
|
} |
|
|
|
|
|
|
|
return new PushedState(this, PushedState.PushedStateType.OpacityMask); |
|
|
|
} |
|
|
|
|