private void RenderTypeSave(Canvas canvas, IReadOnlyViewport viewport, IEnumerable <ILayer> layers, IEnumerable <IWidget> widgets, Color background = null) { if (!viewport.IsSizeInitialized()) { return; } Clear(canvas, background); Render(canvas, viewport, layers); Render(canvas, viewport, widgets); }
private void RenderTypeSave(SKCanvas canvas, IReadOnlyViewport viewport, IEnumerable <ILayer> layers, IEnumerable <IWidget> widgets, Color background = null) { if (!viewport.IsSizeInitialized()) { return; } if (background != null) { canvas.Clear(background.ToSkia(1)); } Render(canvas, viewport, layers); Render(canvas, viewport, widgets, 1); }