示例#1
0
        public override void VisitCurvetoQuadraticSmoothRel(SvgPathSegCurvetoQuadraticSmoothRel segment)
        {
            var cx = 2 * CurPenX - LastX2;
            var cy = 2 * CurPenY - LastY2;

            UpdateRelXy(segment.X, segment.Y);
            LastX2 = cx;
            LastY2 = cy;
        }
示例#2
0
 public override SvgPathSeg VisitCurvetoQuadraticSmoothRel(SvgPathSegCurvetoQuadraticSmoothRel segment)
 => new SvgPathSegCurvetoQuadraticSmoothAbs(_x += segment.X, _y += segment.Y);
示例#3
0
 public virtual void VisitCurvetoQuadraticSmoothRel(SvgPathSegCurvetoQuadraticSmoothRel segment)
 => DefaultVisit(segment);
 public override void VisitCurvetoQuadraticSmoothRel(SvgPathSegCurvetoQuadraticSmoothRel segment) => EmitSmoothQuadraticCurveto(segment);
示例#5
0
 public override void VisitCurvetoQuadraticSmoothRel(SvgPathSegCurvetoQuadraticSmoothRel segment)
 => this.SmoothQuadraticBezierTo(new PointF(segment.X, segment.Y) + currentPoint);