public void CubicBezierTo(Point point1, Point point2, Point point3) { if (this.Path == null) { _context.CurveTo(point1.ToCairo(), point2.ToCairo(), point3.ToCairo()); _currentPoint = point3; } }
public void LineTo(Point point) { if (this.Path == null) { _context.LineTo(point.ToCairo()); _currentPoint = point; } }
public void BeginFigure(Point startPoint, bool isFilled) { if (this.Path == null) { _context.MoveTo(startPoint.ToCairo()); _currentPoint = startPoint; } }
/// <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, Point p1, Point p2) { var size = new Rect(p1, p2).Size; SetPen(pen, size); _context.MoveTo(p1.ToCairo()); _context.LineTo(p2.ToCairo()); _context.Stroke(); }
public void LineTo(Point point) { if (this.Path == null) _context.LineTo(point.ToCairo()); }
public void BezierTo(Point point1, Point point2, Point point3) { if (this.Path == null) _context.CurveTo(point1.ToCairo(), point2.ToCairo(), point3.ToCairo()); }
public void LineTo(Point point) { _context.LineTo(point.ToCairo()); }
public void BezierTo(Point point1, Point point2, Point point3) { _context.CurveTo(point1.ToCairo(), point2.ToCairo(), point3.ToCairo()); }
public void BeginFigure(Point startPoint, bool isFilled) { _context.MoveTo(startPoint.ToCairo()); }