示例#1
0
        public void MoveTo(double x, double y)
        {
            endOpenFigure();

            _startX  = x;
            _startY  = y;
            _figure_ = new FigureTargetRecorder();
        }
示例#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;
        }