Ejemplo n.º 1
0
 /// <summary>
 /// Draws a line.
 /// </summary>
 /// <param name="pen">The stroke pen.</param>
 /// <param name="p1">The first point of the line.</param>
 /// <param name="p1">The second point of the line.</param>
 public void DrawLine(Pen pen, Perspex.Point p1, Perspex.Point p2)
 {
     this.SetBrush(pen.Brush);
     this.context.LineWidth = pen.Thickness;
     this.context.MoveTo(p1.ToCairo());
     this.context.LineTo(p2.ToCairo());
     this.context.Stroke();
 }