SvgMoveToSegment.cs 627 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Drawing;
  5. #pragma warning disable
  6. namespace Svg.Pathing
  7. {
  8. public class SvgMoveToSegment : SvgPathSegment
  9. {
  10. public SvgMoveToSegment(PointF moveTo)
  11. {
  12. this.Start = moveTo;
  13. this.End = moveTo;
  14. }
  15. public override void AddToPath(System.Drawing.Drawing2D.GraphicsPath graphicsPath)
  16. {
  17. graphicsPath.StartFigure();
  18. }
  19. public override string ToString()
  20. {
  21. return "M" + this.Start.ToSvgString();
  22. }
  23. }
  24. }
  25. #pragma warning restore