Example #1
0
 public static void DrawLine(this ICanvas canvas, Point start, Point end, Color color, double width = 1.0)
 {
     var p = new Path { Pen = new Pen(color, width) };
     p.MoveTo(start, false);
     p.LineTo(end);
     p.Draw(canvas);
 }
Example #2
0
 public static void DrawLine(this ICanvas canvas, double x1, double y1, double x2, double y2, Color color, double width = 1.0)
 {
     var p = new Path { Pen = new Pen(color, width) };
     p.MoveTo(x1, y1,false);
     p.LineTo(x2, y2,false);
     p.Draw(canvas);
 }
Example #3
0
 public static void DrawLine(this ICanvas canvas, Point start, Point end, Pen pen)
 {
     var p = new Path { Pen = pen };
     p.MoveTo(start,false);
     p.LineTo(end);
     p.Draw(canvas);
 }
Example #4
0
 public override void AddToPath(Path graphicsPath)
 {
     graphicsPath.MoveTo(Start, End, false);
 }