@ -29,22 +29,13 @@ namespace Avalonia.Media
/// Sets path's winding rule (default is EvenOdd). You should call this method before any calls to BeginFigure. If you wonder why, ask Direct2D guys about their design decisions.
/// </summary>
/// <param name="fillRule"></param>
public void SetFillRule ( FillRule fillRule )
{
_ impl . SetFillRule ( fillRule ) ;
}
/// <summary>
/// Draws an arc to the specified point.
/// </summary>
/// <param name="point">The destination point.</param>
/// <param name="size">The radii of an oval whose perimeter is used to draw the angle.</param>
/// <param name="rotationAngle">The rotation angle (in radians) of the oval that specifies the curve.</param>
/// <param name="isLargeArc">true to draw the arc greater than 180 degrees; otherwise, false.</param>
/// <param name="sweepDirection">
/// A value that indicates whether the arc is drawn in the Clockwise or Counterclockwise direction.
/// </param>
/// <inheritdoc/>
public void ArcTo ( Point point , Size size , double rotationAngle , bool isLargeArc , SweepDirection sweepDirection )
{
_ impl . ArcTo ( point , size , rotationAngle , isLargeArc , sweepDirection ) ;
@ -54,8 +45,8 @@ namespace Avalonia.Media
/// <summary>
/// Draws an arc to the specified point using polylines, quadratic or cubic Bezier curves
/// Significantly more precise when drawing elliptic arcs with extreme width:height ratios.
/// </summary>
/// Significantly more precise when drawing elliptic arcs with extreme width:height ratios.
/// </summary>
/// <param name="point">The destination point.</param>
/// <param name="size">The radii of an oval whose perimeter is used to draw the angle.</param>
/// <param name="rotationAngle">The rotation angle (in radians) of the oval that specifies the curve.</param>
@ -68,54 +59,37 @@ namespace Avalonia.Media
PreciseEllipticArcHelper . ArcTo ( this , _ currentPoint , point , size , rotationAngle , isLargeArc , sweepDirection ) ;
}
/// <summary>
/// Begins a new figure.
/// </summary>
/// <param name="startPoint">The starting point for the figure.</param>
/// <param name="isFilled">Whether the figure is filled.</param>
/// <inheritdoc/>
public void BeginFigure ( Point startPoint , bool isFilled )
{
_ impl . BeginFigure ( startPoint , isFilled ) ;
_ currentPoint = startPoint ;
}
/// <summary>
/// Draws a Bezier curve to the specified point.
/// </summary>
/// <param name="point1">The first control point used to specify the shape of the curve.</param>
/// <param name="point2">The second control point used to specify the shape of the curve.</param>
/// <param name="point3">The destination point for the end of the curve.</param>
public void CubicBezierTo ( Point point1 , Point point2 , Point point3 )
/// <inheritdoc/>
public void CubicBezierTo ( Point controlPoint1 , Point controlPoint2 , Point endPoint )
{
_ impl . CubicBezierTo ( point1 , point2 , point3 ) ;
_ currentPoint = point3 ;
_ impl . CubicBezierTo ( controlPoint1 , controlPoint2 , endPoint ) ;
_ currentPoint = endPoint ;
}
/// <summary>
/// Draws a quadratic Bezier curve to the specified point
/// </summary>
/// <param name="control">The control point used to specify the shape of the curve.</param>
/// <param name="endPoint">The destination point for the end of the curve.</param>
public void QuadraticBezierTo ( Point control , Point endPoint )
/// <inheritdoc/>
public void QuadraticBezierTo ( Point controlPoint , Point endPoint )
{
_ impl . QuadraticBezierTo ( control , endPoint ) ;
_ impl . QuadraticBezierTo ( controlPoint , endPoint ) ;
_ currentPoint = endPoint ;
}
/// <summary>
/// Draws a line to the specified point.
/// </summary>
/// <param name="point">The destination point.</param>
public void LineTo ( Point point )
/// <inheritdoc/>
public void LineTo ( Point endPoint )
{
_ impl . LineTo ( p oint) ;
_ currentPoint = p oint;
_ impl . LineTo ( endPoint ) ;
_ currentPoint = endP oint;
}
/// <summary>
/// Ends the figure started by <see cref="BeginFigure(Point, bool)"/>.
/// </summary>
/// <param name="isClosed">Whether the figure is closed.</param>
/// <inheritdoc/>
public void EndFigure ( bool isClosed )
{
_ impl . EndFigure ( isClosed ) ;