Esempio n. 1
0
        public static PPath CreateLine(float x1, float y1, float x2, float y2)
        {
            PPath line = new PPath();

            line.AddPoint(new PointF(x1, y1));
            line.AddPoint(new PointF(x2, y2));
            return(line);
        }
Esempio n. 2
0
 private static void SetPathToRectangle(PPath path, float x, float y, float width, float height)
 {
     path.Reset();
     path.AddPoint(new PointF(x, y));
     path.AddPoint(new PointF(x + width, y));
     path.AddPoint(new PointF(x + width, y + height));
     path.AddPoint(new PointF(x, y + height));
     path.Closed = true;
 }
Esempio n. 3
0
 private static void SetPathToRectangle(PPath path, float x, float y, float width, float height)
 {
     path.Reset();
     path.AddPoint(new PointF(x, y));
     path.AddPoint(new PointF(x+width, y));
     path.AddPoint(new PointF(x+width, y+height));
     path.AddPoint(new PointF(x, y+height));
     path.Closed = true;
 }
Esempio n. 4
0
 public static PPath CreateLine(float x1, float y1, float x2, float y2)
 {
     PPath line = new PPath();
     line.AddPoint(new PointF(x1, y1));
     line.AddPoint(new PointF(x2, y2));
     return line;
 }