You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SkCanvas::SaveLayerRec is missing from SkiaSharp's API surface, this API is very useful for implementing backdrop effects/filters, we need this API in order to implement CompositionBackdropBrush properly in Uno Platform.
Describe the solution you would like
It would be great if SkCanvas::SaveLayerRec got exposed in SkiaSharp
Describe alternatives you have considered
We currently use a combination of SKCanvas.SaveLayer(SKPaint), SKCanvas.DrawSurface(SKSurface, SKRect), and SKCanvas.Restore() as a workaround, but it isn't ideal and has few issues (e.g. need to downscale the canvas manually, no custom clipping, slower since it's not optimized for backdrop effects unlike SkCanvas::SaveLayerRec, image filter of SKPaint isn't fully applied to the saved region (due to scaling miscalculations?), etc...)
Additional context
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
This is also needed to make ClearType work with layering. Otherwise parameters like pixel geometry or sub pixel text are not preserved for the created layer.
Is your feature request related to a problem?
SkCanvas::SaveLayerRec
is missing from SkiaSharp's API surface, this API is very useful for implementing backdrop effects/filters, we need this API in order to implement CompositionBackdropBrush properly in Uno Platform.Describe the solution you would like
It would be great if
SkCanvas::SaveLayerRec
got exposed in SkiaSharpDescribe alternatives you have considered
We currently use a combination of
SKCanvas.SaveLayer(SKPaint)
,SKCanvas.DrawSurface(SKSurface, SKRect)
, andSKCanvas.Restore()
as a workaround, but it isn't ideal and has few issues (e.g. need to downscale the canvas manually, no custom clipping, slower since it's not optimized for backdrop effects unlikeSkCanvas::SaveLayerRec
, image filter of SKPaint isn't fully applied to the saved region (due to scaling miscalculations?), etc...)Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: