Beispiel #1
0
 public void MoveTo(double x, double y)
 {
     PathPoints.Add(new GFXPathMoveTo(x, y));
     subpath_start_x = x;
     subpath_start_y = y;
     cache           = null;
 }
Beispiel #2
0
 public void AppendPath(GFXPath path)
 {
     if (path != null && path.PathPoints.Count != 0)
     {
         PathPoints.AddRange(path.PathPoints);
         cache = null;
     }
 }
Beispiel #3
0
        public void ArcTo(double x, double y, double bulge)
        {
            cache = null;

            if (Math.Abs(bulge) < MathUtil.Epsilon)
            {
                LineTo(x, y);
                return;
            }

            PathPoints.Add(new GFXPathArcTo(x, y, bulge));
        }
Beispiel #4
0
 public void CloseSubPath()
 {
     PathPoints.Add(new GFXPathCloseSubPath(subpath_start_x, subpath_start_y));
     cache = null;
 }
Beispiel #5
0
 public void BezierTo(double xctl1, double yctl1, double xctl2, double yctl2, double xend, double yend)
 {
     PathPoints.Add(new GFXPathBezierTo(xctl1, yctl1, xctl2, yctl2, xend, yend));
     cache = null;
 }
Beispiel #6
0
 public void LineTo(double x, double y)
 {
     PathPoints.Add(new GFXPathLineTo(x, y));
     cache = null;
 }