Exemplo n.º 1
0
        public void Paint(float x, float y, IPathCanvas canvas)
        {
            if (_svg == null) return;
            _xScale = _xGlyphScale;
            _yScale = _yGlyphScale;

            var startX = x;
            var startY = y;
            _currentX = startX;
            _currentY = startY;
            canvas.BeginPath();

            for (int i = 0, j = _svg.Commands.Count; i < j; i++)
            {
                ParseCommand(startX, startY, canvas, _svg.Commands[i]);
            }
            canvas.Fill();
        }
        public void Paint(float x, float y, IPathCanvas canvas)
        {
            if (_svg == null)
            {
                return;
            }
            _xScale = _xGlyphScale;
            _yScale = _yGlyphScale;

            var startX = x;
            var startY = y;

            _currentX = startX;
            _currentY = startY;
            canvas.BeginPath();

            for (int i = 0, j = _svg.Commands.Count; i < j; i++)
            {
                ParseCommand(startX, startY, canvas, _svg.Commands[i]);
            }
            canvas.Fill();
        }