/// <summary> /// Initializes a new instance of the <see cref="ArcSegment"/> struct. /// </summary> /// <param name="point">The end point of the arc.</param> /// <param name="size">The x-radius and y-radius of the arc.</param> /// <param name="rotationAngle">A value that specifies how many degrees in the clockwise direction the ellipse is rotated relative to the current coordinate system.</param> /// <param name="sweepDirection">A value that specifies whether the arc sweep is clockwise or counterclockwise.</param> /// <param name="arcSize">A value that specifies whether the given arc is larger than 180 degrees.</param> public ArcSegment(Vector2 point, SizeF size, float rotationAngle, SweepDirection sweepDirection, ArcSize arcSize) { Point = point; Size = size; RotationAngle = rotationAngle; SweepDirection = sweepDirection; ArcSize = arcSize; }
/// <summary> /// 使用指定的设置初始化 <see cref="ArcSegment"/> 类的新实例。 /// </summary> /// <param name="end">弧线路径段的终结点。</param> /// <param name="size">弧线路径段的尺寸。</param> /// <param name="rotationAngel">弧线路径段的旋转角度。</param> /// <param name="sweepDirection">弧线路径段的绘制方向。</param> /// <param name="arcSize">弧线路径段是否大于 180 度。</param> public ArcSegment(Vector2 end, Size2F size, float rotationAngel, SweepDirection sweepDirection, ArcSize arcSize) : base(PathType.Arc, end) { this.Size = size; this.RotationAngle = rotationAngel; this.SweepDirection = sweepDirection; this.ArcSize = arcSize; }
public ArcSegment( PointF point, SizeF size, float rotationAngle = 0.0f, SweepDirection sweepDirection = SweepDirection.Clockwise, ArcSize arcSize = ArcSize.Small) { Point = point; Size = size; RotationAngle = rotationAngle; SweepDirection = sweepDirection; ArcSize = arcSize; }
/// <summary> /// 向当前路径中添加一条弧线段。 /// </summary> /// <param name="end">弧线路径段的终结点。</param> /// <param name="size">弧线路径段的尺寸。</param> /// <param name="rotationAngel">弧线路径段的旋转角度。</param> /// <param name="sweepDirection">弧线路径段的绘制方向。</param> /// <param name="arcSize">弧线路径段是否大于 180 度。</param> public void AddArc(Vector2 end, Size2F size, float rotationAngel, SweepDirection sweepDirection, ArcSize arcSize) { this.Add(new ArcSegment(end, size, rotationAngel, sweepDirection, arcSize)); }