-
@kekekeks I see in Avalonia v11.0 that IVisual visual;
using var context = new DrawingContext(DrawingContextHelper.WrapSkiaCanvas(canvas, SkiaPlatform.DefaultDpi));
ImmediateRenderer.Render(visual, context); Is there an easy equivalent to render static content to a Skia canvas like this in v11.0, either via |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
I don't think there is now.
Or you can render existing controls to RenderTargetBitmap:
But I don't see any way to combine RenderTargetBitmap with a custom drawing context. |
Beta Was this translation helpful? Give feedback.
For 11.1 (nightly currently) you can also use this method: https://github.com/AvaloniaUI/Avalonia/blob/master/src/Skia/Avalonia.Skia/Helpers/DrawingContextHelper.cs#L14