当前位置: 首页>>代码示例>>C#>>正文


C# Point.ToSharpDX方法代码示例

本文整理汇总了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()
     });
 }
开发者ID:KvanTTT,项目名称:Perspex,代码行数:8,代码来源:StreamGeometryContextImpl.cs

示例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);
        }
开发者ID:modulexcite,项目名称:Avalonia,代码行数:8,代码来源:Direct2D1StreamGeometryContext.cs

示例3: CubicBezierTo

 public void CubicBezierTo(Point point1, Point point2, Point point3)
 {
     _sink.AddBezier(new BezierSegment
     {
         Point1 = point1.ToSharpDX(),
         Point2 = point2.ToSharpDX(),
         Point3 = point3.ToSharpDX(),
     });
 }
开发者ID:KvanTTT,项目名称:Perspex,代码行数:9,代码来源:StreamGeometryContextImpl.cs

示例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(),
     });
 }
开发者ID:modulexcite,项目名称:Avalonia,代码行数:9,代码来源:Direct2D1StreamGeometryContext.cs

示例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,
     });
 }
开发者ID:KvanTTT,项目名称:Perspex,代码行数:16,代码来源:StreamGeometryContextImpl.cs

示例6: LineTo

 public void LineTo(Point point)
 {
     _sink.AddLine(point.ToSharpDX());
 }
开发者ID:KvanTTT,项目名称:Perspex,代码行数:4,代码来源:StreamGeometryContextImpl.cs

示例7: BeginFigure

 public void BeginFigure(Point startPoint, bool isFilled)
 {
     _sink.BeginFigure(startPoint.ToSharpDX(), isFilled ? FigureBegin.Filled : FigureBegin.Hollow);
 }
开发者ID:KvanTTT,项目名称:Perspex,代码行数:4,代码来源:StreamGeometryContextImpl.cs

示例8: FillContains

 public bool FillContains(Point point)
 {
     return Geometry.FillContainsPoint(point.ToSharpDX());
 }
开发者ID:CarlSosaDev,项目名称:Avalonia,代码行数:4,代码来源:GeometryImpl.cs

示例9: LineTo

 public override void LineTo(Point point, bool isStroked, bool isSmoothJoin)
 {
     this.sink.AddLine(point.ToSharpDX());
 }
开发者ID:modulexcite,项目名称:Avalonia,代码行数:4,代码来源:Direct2D1StreamGeometryContext.cs


注:本文中的Point.ToSharpDX方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。