Path size.
Inheritance: ObservableObject
コード例 #1
0
ファイル: XPathGeometryContext.cs プロジェクト: Core2D/Core2D
 /// <inheritdoc/>
 public override void ArcTo(XPoint point, XPathSize size, double rotationAngle = 0.0, bool isLargeArc = false, XSweepDirection sweepDirection = XSweepDirection.Clockwise, bool isStroked = true, bool isSmoothJoin = true)
 {
     var segment = XArcSegment.Create(
         point,
         size,
         rotationAngle,
         isLargeArc,
         sweepDirection,
         isStroked,
         isSmoothJoin);
     _currentFigure.Segments = _currentFigure.Segments.Add(segment);
 }
コード例 #2
0
        /// <inheritdoc/>
        public override void ArcTo(XPoint point, XPathSize size, double rotationAngle = 0.0, bool isLargeArc = false, XSweepDirection sweepDirection = XSweepDirection.Clockwise, bool isStroked = true, bool isSmoothJoin = true)
        {
            var segment = XArcSegment.Create(
                point,
                size,
                rotationAngle,
                isLargeArc,
                sweepDirection,
                isStroked,
                isSmoothJoin);

            _currentFigure.Segments = _currentFigure.Segments.Add(segment);
        }
コード例 #3
0
ファイル: XGeometryContext.cs プロジェクト: Core2D/Core2D
 /// <summary>
 /// Adds arc segment.
 /// </summary>
 /// <param name="point">The end point.</param>
 /// <param name="size">The arc size.</param>
 /// <param name="rotationAngle">The rotation angle.</param>
 /// <param name="isLargeArc">The is large flag.</param>
 /// <param name="sweepDirection">The sweep direction flag.</param>
 /// <param name="isStroked">The flag indicating whether shape is stroked.</param>
 /// <param name="isSmoothJoin">The flag indicating whether shape is smooth join.</param>
 public abstract void ArcTo(XPoint point, XPathSize size, double rotationAngle, bool isLargeArc = false, XSweepDirection sweepDirection = XSweepDirection.Clockwise, bool isStroked = true, bool isSmoothJoin = true);
コード例 #4
0
ファイル: XPathSizeTests.cs プロジェクト: Core2D/Core2D
 public void ToString_Should_Return_Width_And_Height()
 {
     var target = new XPathSize() { Width = 50, Height = 30 };
     var actual = target.ToString();
     Assert.Equal("50,30", actual);
 }
コード例 #5
0
 /// <summary>
 /// Adds arc segment.
 /// </summary>
 /// <param name="point">The end point.</param>
 /// <param name="size">The arc size.</param>
 /// <param name="rotationAngle">The rotation angle.</param>
 /// <param name="isLargeArc">The is large flag.</param>
 /// <param name="sweepDirection">The sweep direction flag.</param>
 /// <param name="isStroked">The flag indicating whether shape is stroked.</param>
 /// <param name="isSmoothJoin">The flag indicating whether shape is smooth join.</param>
 public abstract void ArcTo(XPoint point, XPathSize size, double rotationAngle, bool isLargeArc = false, XSweepDirection sweepDirection = XSweepDirection.Clockwise, bool isStroked = true, bool isSmoothJoin = true);