PeachDrawing.Skia.SkiaCanvas
SkiaCanvas.FromCanvas(SkiaRenderContext, SKCanvas, Rect, SkiaLinkOptions) Method
Makes a canvas that draws into an SkiaSharp.SKCanvas the caller already has: the one a view hands its paint handler, a surface’s, a bitmap’s.
public static PeachDrawing.Skia.SkiaCanvas FromCanvas(PeachDrawing.Skia.SkiaRenderContext context, SkiaSharp.SKCanvas canvas, PeachDrawing.Core.Rect bounds, PeachDrawing.Skia.SkiaLinkOptions? linkOptions=null);
Parameters
context SkiaRenderContext
where fonts and images come from; its PixelsPerPoint sets the canvas’s
canvas SkiaSharp.SKCanvas
the canvas to draw into. It is borrowed: this canvas never disposes or flushes it, and restores its save level and so its matrix and clip when it is disposed
bounds Rect
the area being drawn, in layout units (the initial clip bound that culling reads)
linkOptions SkiaLinkOptions
which links Links may open, or null for the defaults
Returns
SkiaCanvas
the canvas; dispose it when the drawing is done