本文整理汇总了C#中Location.ToD2D方法的典型用法代码示例。如果您正苦于以下问题:C# Location.ToD2D方法的具体用法?C# Location.ToD2D怎么用?C# Location.ToD2D使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Location
的用法示例。
在下文中一共展示了Location.ToD2D方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BezierTo
public void BezierTo(Location end, Location cp1, Location cp2)
{
_sink.AddBezier(new D2D.BezierSegment
{
Point1 = cp1.ToD2D(),
Point2 = cp2.ToD2D(),
Point3 = end.ToD2D(),
});
}
示例2: ArcTo
public void ArcTo(Location point, Size size, double rotationAngle, bool isLargeArc)
{
_sink.AddArc(new D2D.ArcSegment
{
Point = point.ToD2D(),
Size = size.ToD2D(),
RotationAngle = (float)rotationAngle,
ArcSize = isLargeArc ? D2D.ArcSize.Large : D2D.ArcSize.Small,
SweepDirection = D2D.SweepDirection.Clockwise,
});
}
示例3: DrawLine
public void DrawLine(Location From, Location To)
{
_renderTarget.DrawLine(From.ToD2D(), To.ToD2D(), brush);
}
示例4: LineTo
public void LineTo(Location p)
{
_sink.AddLine(p.ToD2D());
}
示例5: BeginFigure
public void BeginFigure(Location startPoint, bool isFilled)
{
_sink.BeginFigure(startPoint.ToD2D(), isFilled ? D2D.FigureBegin.Filled : D2D.FigureBegin.Hollow);
}