Interface IPathBuilder
Defines methods for constructing paths, following the HTML5 Canvas path API model.
Reference: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D#paths
public interface IPathBuilder : IGlyphPathBuilder
- Inherited Members
Methods
Arc(Point, NFloat, NFloat, NFloat, Winding)
Adds an arc to the path centered at the specified point.
void Arc(Point center, NFloat radius, NFloat startAngle, NFloat endAngle, Winding winding = Winding.ClockWise)
Parameters
center
PointCenter of the arc.
radius
NFloatRadius of the arc.
startAngle
NFloatStart angle in radians.
endAngle
NFloatEnd angle in radians.
winding
WindingDirection in which the arc is drawn.
ArcTo(Point, Point, NFloat)
Adds an arc to the path, connecting two tangents defined by control points.
void ArcTo(Point cp1, Point cp2, NFloat radius)
Parameters
BeginPath()
Begins a new path by resetting the current path list.
void BeginPath()
CurveTo(Point, Point, Point)
Draws a cubic Bézier curve from the current point to the specified point, using two control points.
void CurveTo(Point cp1, Point cp2, Point to)
Parameters
Ellipse(Point, NFloat, NFloat, NFloat, NFloat, NFloat, Winding)
Adds an elliptical arc to the path.
void Ellipse(Point center, NFloat radiusX, NFloat radiusY, NFloat rotation, NFloat startAngle, NFloat endAngle, Winding winding = Winding.ClockWise)
Parameters
center
PointCenter of the ellipse.
radiusX
NFloatHorizontal radius.
radiusY
NFloatVertical radius.
rotation
NFloatRotation of the ellipse, in radians.
startAngle
NFloatStart angle in radians.
endAngle
NFloatEnd angle in radians.
winding
WindingDirection in which the arc is drawn.
Rect(Rect)
Adds a rectangle path to the current path.
void Rect(Rect rect)
Parameters
rect
RectThe rectangle to add.
RoundRect(Rect, NFloat)
Adds a rounded rectangle path with a uniform radius.
void RoundRect(Rect rect, NFloat radius)
Parameters
RoundRect(Rect, CornerRadius)
Adds a rounded rectangle path with per-corner radii.
void RoundRect(Rect rect, CornerRadius radius)
Parameters
rect
RectThe rectangle to round.
radius
CornerRadiusCorner radius object defining each corner.