本文整理匯總了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;
}
}
示例2: LineTo
public void LineTo(Point point)
{
if (this.Path == null)
{
_context.LineTo(point.ToCairo());
_currentPoint = point;
}
}
示例3: BeginFigure
public void BeginFigure(Point startPoint, bool isFilled)
{
if (this.Path == null)
{
_context.MoveTo(startPoint.ToCairo());
_currentPoint = startPoint;
}
}
示例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();
}
示例5: LineTo
public void LineTo(Point point)
{
if (this.Path == null)
_context.LineTo(point.ToCairo());
}
示例6: BezierTo
public void BezierTo(Point point1, Point point2, Point point3)
{
if (this.Path == null)
_context.CurveTo(point1.ToCairo(), point2.ToCairo(), point3.ToCairo());
}
示例7: LineTo
public void LineTo(Point point)
{
_context.LineTo(point.ToCairo());
}
示例8: BezierTo
public void BezierTo(Point point1, Point point2, Point point3)
{
_context.CurveTo(point1.ToCairo(), point2.ToCairo(), point3.ToCairo());
}
示例9: BeginFigure
public void BeginFigure(Point startPoint, bool isFilled)
{
_context.MoveTo(startPoint.ToCairo());
}