本文整理汇总了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());
}