SvgPathSegment.cs 949 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Drawing;
  5. using System.Drawing.Drawing2D;
  6. #pragma warning disable
  7. namespace Svg.Pathing
  8. {
  9. public abstract class SvgPathSegment
  10. {
  11. private PointF _start;
  12. private PointF _end;
  13. public PointF Start
  14. {
  15. get { return this._start; }
  16. set { this._start = value; }
  17. }
  18. public PointF End
  19. {
  20. get { return this._end; }
  21. set { this._end = value; }
  22. }
  23. protected SvgPathSegment()
  24. {
  25. }
  26. protected SvgPathSegment(PointF start, PointF end)
  27. {
  28. this.Start = start;
  29. this.End = end;
  30. }
  31. public abstract void AddToPath(GraphicsPath graphicsPath);
  32. public SvgPathSegment Clone()
  33. {
  34. return this.MemberwiseClone() as SvgPathSegment;
  35. }
  36. }
  37. }
  38. #pragma warning restore