コード例 #1
0
 public void CubicBezierTo(Point point1, Point point2, Point point3)
 {
     if (this.Path == null)
     {
         _context.CurveTo(point1.ToCairo(), point2.ToCairo(), point3.ToCairo());
         _currentPoint = point3;
     }
 }
コード例 #2
0
 public void LineTo(Point point)
 {
     if (this.Path == null)
     {
         _context.LineTo(point.ToCairo());
         _currentPoint = point;
     }
 }
コード例 #3
0
 public void BeginFigure(Point startPoint, bool isFilled)
 {
     if (this.Path == null)
     {
         _context.MoveTo(startPoint.ToCairo());
         _currentPoint = startPoint;
     }
 }
コード例 #4
0
ファイル: DrawingContext.cs プロジェクト: healtech/Perspex
        /// <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();
        }
コード例 #5
0
        public void LineTo(Point point)
        {
			if (this.Path == null)
            	_context.LineTo(point.ToCairo());
        }
コード例 #6
0
        public void BezierTo(Point point1, Point point2, Point point3)
        {
			if (this.Path == null)
            	_context.CurveTo(point1.ToCairo(), point2.ToCairo(), point3.ToCairo());
        }
コード例 #7
0
 public void LineTo(Point point)
 {
     _context.LineTo(point.ToCairo());
 }
コード例 #8
0
 public void BezierTo(Point point1, Point point2, Point point3)
 {
     _context.CurveTo(point1.ToCairo(), point2.ToCairo(), point3.ToCairo());
 }
コード例 #9
0
 public void BeginFigure(Point startPoint, bool isFilled)
 {
     _context.MoveTo(startPoint.ToCairo());
 }