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); }
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; }
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; }
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; }