當前位置: 首頁>>代碼示例>>C#>>正文


C# Point.ToCairo方法代碼示例

本文整理匯總了C#中System.Point.ToCairo方法的典型用法代碼示例。如果您正苦於以下問題:C# Point.ToCairo方法的具體用法?C# Point.ToCairo怎麽用?C# Point.ToCairo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在System.Point的用法示例。


在下文中一共展示了Point.ToCairo方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: CubicBezierTo

 public void CubicBezierTo(Point point1, Point point2, Point point3)
 {
     if (this.Path == null)
     {
         _context.CurveTo(point1.ToCairo(), point2.ToCairo(), point3.ToCairo());
         _currentPoint = point3;
     }
 }
開發者ID:CarlSosaDev,項目名稱:Avalonia,代碼行數:8,代碼來源:StreamGeometryContextImpl.cs

示例2: LineTo

 public void LineTo(Point point)
 {
     if (this.Path == null)
     {
         _context.LineTo(point.ToCairo());
         _currentPoint = point;
     }
 }
開發者ID:CarlSosaDev,項目名稱:Avalonia,代碼行數:8,代碼來源:StreamGeometryContextImpl.cs

示例3: BeginFigure

 public void BeginFigure(Point startPoint, bool isFilled)
 {
     if (this.Path == null)
     {
         _context.MoveTo(startPoint.ToCairo());
         _currentPoint = startPoint;
     }
 }
開發者ID:CarlSosaDev,項目名稱:Avalonia,代碼行數:8,代碼來源:StreamGeometryContextImpl.cs

示例4: DrawLine

        /// <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();
        }
開發者ID:healtech,項目名稱:Perspex,代碼行數:16,代碼來源:DrawingContext.cs

示例5: LineTo

        public void LineTo(Point point)
        {
			if (this.Path == null)
            	_context.LineTo(point.ToCairo());
        }
開發者ID:rdterner,項目名稱:Perspex,代碼行數:5,代碼來源:StreamGeometryContextImpl.cs

示例6: BezierTo

        public void BezierTo(Point point1, Point point2, Point point3)
        {
			if (this.Path == null)
            	_context.CurveTo(point1.ToCairo(), point2.ToCairo(), point3.ToCairo());
        }
開發者ID:rdterner,項目名稱:Perspex,代碼行數:5,代碼來源:StreamGeometryContextImpl.cs

示例7: LineTo

 public void LineTo(Point point)
 {
     _context.LineTo(point.ToCairo());
 }
開發者ID:healtech,項目名稱:Perspex,代碼行數:4,代碼來源:StreamGeometryContextImpl.cs

示例8: BezierTo

 public void BezierTo(Point point1, Point point2, Point point3)
 {
     _context.CurveTo(point1.ToCairo(), point2.ToCairo(), point3.ToCairo());
 }
開發者ID:healtech,項目名稱:Perspex,代碼行數:4,代碼來源:StreamGeometryContextImpl.cs

示例9: BeginFigure

 public void BeginFigure(Point startPoint, bool isFilled)
 {
     _context.MoveTo(startPoint.ToCairo());
 }
開發者ID:healtech,項目名稱:Perspex,代碼行數:4,代碼來源:StreamGeometryContextImpl.cs


注:本文中的System.Point.ToCairo方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。