コード例 #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);
        }
コード例 #2
0
ファイル: MapRenderer.cs プロジェクト: pranker/Mapsui
        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);
        }