GraphicsPathExtensionMethods

public static class GraphicsPathExtensionMethods
Provides extension methods for the Eto graphicspath.

Methods

AddArc

#Example
Add an arc to the graphics path.
public static void AddArc(
this GraphicsPath
path,
Path to append to.
arc
Arc to append.
)

AddArc

#Example
Add a circular arc to the graphics path.
public static void AddArc(
this GraphicsPath
path,
Path to add to.
PointF
centre,
Centre of circular arc.
radius,
Radius of circular arc.
startAngle,
Start angle, measured in degrees, clockwise from the x-axis.
sweepAngle
Sweep angle, measured in degrees, clockwise.
)

AddArc

#Example
Add a circular arc to the graphics path.
public static void AddArc(
this GraphicsPath
path,
Path to add to.
PointF
start,
Start of circular arc.
PointF
end,
End of circular arc.
SizeF
tangent
Tangent at start.
)

AddArcLowerLeft

#Example
Add an arc to the lower-left of a corner point.
public static void AddArcLowerLeft(
this GraphicsPath
path,
PointF
corner,
radius,
clockwise
)

AddArcLowerLeft

#Example
Add the arc in the lower left corner of a rectangle.
public static void AddArcLowerLeft(
this GraphicsPath
path,
Path to append to.
RectangleF
rectangle,
Rectangle.
radius,
Radius of arc.
clockwise
If true, the arc will be appended in a clockwise manner.
)

AddArcLowerRight

#Example
Add an arc to the lower-right of a corner point.
public static void AddArcLowerRight(
this GraphicsPath
path,
PointF
corner,
radius,
clockwise
)

AddArcLowerRight

#Example
Add the arc in the lower right corner of a rectangle.
public static void AddArcLowerRight(
this GraphicsPath
path,
Path to append to.
RectangleF
rectangle,
Rectangle.
radius,
Radius of arc.
clockwise
If true, the arc will be appended in a clockwise manner.
)

AddArcUpperLeft

#Example
Add an arc to the upper-left of a corner point.
public static void AddArcUpperLeft(
this GraphicsPath
path,
PointF
corner,
radius,
clockwise
)

AddArcUpperLeft

#Example
Add the arc in the upper left corner of a rectangle.
public static void AddArcUpperLeft(
this GraphicsPath
path,
Path to append to.
RectangleF
rectangle,
Rectangle.
radius,
Radius of arc.
clockwise
If true, the arc will be appended in a clockwise manner.
)

AddArcUpperRight

#Example
Add an arc to the upper-right of a corner point.
public static void AddArcUpperRight(
this GraphicsPath
path,
PointF
corner,
radius,
clockwise
)

AddArcUpperRight

#Example
Add the arc in the upper right corner of a rectangle.
public static void AddArcUpperRight(
this GraphicsPath
path,
Path to append to.
RectangleF
rectangle,
Rectangle.
radius,
Radius of arc.
clockwise
If true, the arc will be appended in a clockwise manner.
)

AddBezier

#Example
Add a BezierF to this graphics path.
public static void AddBezier(
this GraphicsPath
path,
Path to append to.
bezier
Bezier curve to add.
)

AddCircle

#Example
Add a circle to the graphics path.
public static void AddCircle(
this GraphicsPath
path,
Path to add to.
circle
Circle to add.
)

AddCurve

#Example
Add a Rhino curve to the path.
public static void AddCurve(
this GraphicsPath
path,
Path to add to.
curve,
Curve to add.
accuracy
Accuracy.
)

AddEllipse

#Example
Add an ellipse to the graphics path.
public static void AddEllipse(
this GraphicsPath
path,
Path to extend.
ellipse
Ellipse to add.
)

AddLine

#Example
Add a line to this path.
public static void AddLine(
this GraphicsPath
path,
line
)

AddRoundedUpperBar

#Example
Add the outline of a bar with rounded corners on the top. It is the responsibility of the caller to not pick radii which add up to more than the width of the bounds.
public static void AddRoundedUpperBar(
this GraphicsPath
path,
Path to append to. Probably best if it's empty.
RectangleF
bounds,
Bounds of bar.
radiusLeft,
Radius of the top left corner.
radiusRight
Radius of the top right corner.
)

RoundedBottomPath

#Example
Gets a graphics path representing the contents of the bottom part of this rectangle along with rounded corners. Note that the height in this case is measured upwards from the bottom of the rectangle.
public static GraphicsPath RoundedBottomPath(
this RectangleF
rec,
radii,
height
)
Graphics path or null if no solution is possible with the given constraints.

RoundedTopPath

#Example
Gets a graphics path representing the contents of the top part of this rectangle along with rounded corners.
public static GraphicsPath RoundedTopPath(
this RectangleF
rec,
radii,
height
)
Graphics path or null if no solution is possible with the given constraints.