本文整理汇总了C#中Point.ToSharpDX方法的典型用法代码示例。如果您正苦于以下问题:C# Point.ToSharpDX方法的具体用法?C# Point.ToSharpDX怎么用?C# Point.ToSharpDX使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Point
的用法示例。
在下文中一共展示了Point.ToSharpDX方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: QuadraticBezierTo
public void QuadraticBezierTo(Point control, Point dest)
{
_sink.AddQuadraticBezier(new QuadraticBezierSegment
{
Point1 = control.ToSharpDX(),
Point2 = dest.ToSharpDX()
});
}
示例2: BeginFigure
public override void BeginFigure(Point startPoint, bool isFilled, bool isClosed)
{
this.figureEnd = isClosed ? FigureEnd.Closed : FigureEnd.Open;
this.sink.BeginFigure(
startPoint.ToSharpDX(),
isFilled ? FigureBegin.Filled : FigureBegin.Hollow);
}
示例3: CubicBezierTo
public void CubicBezierTo(Point point1, Point point2, Point point3)
{
_sink.AddBezier(new BezierSegment
{
Point1 = point1.ToSharpDX(),
Point2 = point2.ToSharpDX(),
Point3 = point3.ToSharpDX(),
});
}
示例4: BezierTo
public override void BezierTo(Point point1, Point point2, Point point3, bool isStroked, bool isSmoothJoin)
{
this.sink.AddBezier(new BezierSegment
{
Point1 = point1.ToSharpDX(),
Point2 = point2.ToSharpDX(),
Point3 = point3.ToSharpDX(),
});
}
示例5: ArcTo
public void ArcTo(
Point point,
Size size,
double rotationAngle,
bool isLargeArc,
Perspex.Media.SweepDirection sweepDirection)
{
_sink.AddArc(new ArcSegment
{
Point = point.ToSharpDX(),
Size = size.ToSharpDX(),
RotationAngle = (float)rotationAngle,
ArcSize = isLargeArc ? ArcSize.Large : ArcSize.Small,
SweepDirection = (SweepDirection)sweepDirection,
});
}
示例6: LineTo
public void LineTo(Point point)
{
_sink.AddLine(point.ToSharpDX());
}
示例7: BeginFigure
public void BeginFigure(Point startPoint, bool isFilled)
{
_sink.BeginFigure(startPoint.ToSharpDX(), isFilled ? FigureBegin.Filled : FigureBegin.Hollow);
}
示例8: FillContains
public bool FillContains(Point point)
{
return Geometry.FillContainsPoint(point.ToSharpDX());
}
示例9: LineTo
public override void LineTo(Point point, bool isStroked, bool isSmoothJoin)
{
this.sink.AddLine(point.ToSharpDX());
}