Exemplo n.º 1
0
        public void endOpenFigure(FigureEnd end = FigureEnd.Open)
        {
            if (_figure_ == null)
            {
                return;
            }

            var fill = end == FigureEnd.Open ? FigureBegin.Hollow : FigureBegin.Filled;

            _sink.BeginFigure(Import.Point(_startX, _startY), fill);
            var sinkTarget = new GeometrySinkFigureTarget(_sink);

            _figure_.Replay(sinkTarget);
            _sink.EndFigure(end);
            _figure_ = null;
        }
Exemplo n.º 2
0
        public void endOpenFigure(FigureEnd end = FigureEnd.Open)
        {
            if (_figure_ == null)
                return;

            var fill = end == FigureEnd.Open ? FigureBegin.Hollow : FigureBegin.Filled;
            _sink.BeginFigure(Import.Point(_startX, _startY), fill);
            var sinkTarget = new GeometrySinkFigureTarget(_sink);
            _figure_.Replay(sinkTarget);
            _sink.EndFigure(end);
            _figure_ = null;
        }