Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }