Namespace: PdfSharp.Drawing
Represents a series of connected lines and curves.
public sealed class XGraphicsPath
Inheritance Object → XGraphicsPath
Gets or sets an XFillMode that determines how the interiors of shapes are filled.
public XFillMode FillMode { get; set; }
Grants access to internal objects of this class.
public XGraphicsPathInternals Internals { get; }
Initializes a new instance of the XGraphicsPath class.
public XGraphicsPath()
Clones this instance.
public XGraphicsPath Clone()
Adds a line segment to current figure.
public void AddLine(XPoint pt1, XPoint pt2)
pt1
XPoint
pt2
XPoint
Adds a line segment to current figure.
public void AddLine(double x1, double y1, double x2, double y2)
x1
Double
y1
Double
x2
Double
y2
Double
Adds a series of connected line segments to current figure.
public void AddLines(XPoint[] points)
points
XPoint[]
Adds a cubic Bézier curve to the current figure.
public void AddBezier(XPoint pt1, XPoint pt2, XPoint pt3, XPoint pt4)
pt1
XPoint
pt2
XPoint
pt3
XPoint
pt4
XPoint
Adds a cubic Bézier curve to the current figure.
public void AddBezier(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4)
x1
Double
y1
Double
x2
Double
y2
Double
x3
Double
y3
Double
x4
Double
y4
Double
Adds a sequence of connected cubic Bézier curves to the current figure.
public void AddBeziers(XPoint[] points)
points
XPoint[]
Adds a spline curve to the current figure.
public void AddCurve(XPoint[] points)
points
XPoint[]
Adds a spline curve to the current figure.
public void AddCurve(XPoint[] points, double tension)
points
XPoint[]
tension
Double
Adds a spline curve to the current figure.
public void AddCurve(XPoint[] points, int offset, int numberOfSegments, double tension)
points
XPoint[]
offset
Int32
numberOfSegments
Int32
tension
Double
Adds an elliptical arc to the current figure.
public void AddArc(XRect rect, double startAngle, double sweepAngle)
rect
XRect
startAngle
Double
sweepAngle
Double
Adds an elliptical arc to the current figure.
public void AddArc(double x, double y, double width, double height, double startAngle, double sweepAngle)
x
Double
y
Double
width
Double
height
Double
startAngle
Double
sweepAngle
Double
Adds an elliptical arc to the current figure. The arc is specified WPF like.
public void AddArc(XPoint point1, XPoint point2, XSize size, double rotationAngle, bool isLargeArg, XSweepDirection sweepDirection)
point1
XPoint
point2
XPoint
size
XSize
rotationAngle
Double
isLargeArg
Boolean
sweepDirection
XSweepDirection
Adds a rectangle to this path.
public void AddRectangle(XRect rect)
rect
XRect
Adds a rectangle to this path.
public void AddRectangle(double x, double y, double width, double height)
x
Double
y
Double
width
Double
height
Double
Adds a series of rectangles to this path.
public void AddRectangles(XRect[] rects)
rects
XRect[]
Adds a rectangle with rounded corners to this path.
public void AddRoundedRectangle(double x, double y, double width, double height, double ellipseWidth, double ellipseHeight)
x
Double
y
Double
width
Double
height
Double
ellipseWidth
Double
ellipseHeight
Double
Adds an ellipse to the current path.
public void AddEllipse(XRect rect)
rect
XRect
Adds an ellipse to the current path.
public void AddEllipse(double x, double y, double width, double height)
x
Double
y
Double
width
Double
height
Double
Adds a polygon to this path.
public void AddPolygon(XPoint[] points)
points
XPoint[]
Adds the outline of a pie shape to this path.
public void AddPie(XRect rect, double startAngle, double sweepAngle)
rect
XRect
startAngle
Double
sweepAngle
Double
Adds the outline of a pie shape to this path.
public void AddPie(double x, double y, double width, double height, double startAngle, double sweepAngle)
x
Double
y
Double
width
Double
height
Double
startAngle
Double
sweepAngle
Double
Adds a closed curve to this path.
public void AddClosedCurve(XPoint[] points)
points
XPoint[]
Adds a closed curve to this path.
public void AddClosedCurve(XPoint[] points, double tension)
points
XPoint[]
tension
Double
Adds the specified path to this path.
public void AddPath(XGraphicsPath path, bool connect)
path
XGraphicsPath
connect
Boolean
Adds a text string to this path.
public void AddString(string s, XFontFamily family, XFontStyleEx style, double emSize, XPoint origin, XStringFormat format)
s
String
family
XFontFamily
style
XFontStyleEx
emSize
Double
origin
XPoint
format
XStringFormat
Adds a text string to this path.
public void AddString(string s, XFontFamily family, XFontStyleEx style, double emSize, XRect layoutRect, XStringFormat format)
s
String
family
XFontFamily
style
XFontStyleEx
emSize
Double
layoutRect
XRect
format
XStringFormat
Closes the current figure and starts a new figure.
public void CloseFigure()
Starts a new figure without closing the current figure.
public void StartFigure()
Converts each curve in this XGraphicsPath into a sequence of connected line segments.
public void Flatten()
Converts each curve in this XGraphicsPath into a sequence of connected line segments.
public void Flatten(XMatrix matrix)
matrix
XMatrix
Converts each curve in this XGraphicsPath into a sequence of connected line segments.
public void Flatten(XMatrix matrix, double flatness)
matrix
XMatrix
flatness
Double
Replaces this path with curves that enclose the area that is filled when this path is drawn by the specified pen.
public void Widen(XPen pen)
pen
XPen
Replaces this path with curves that enclose the area that is filled when this path is drawn by the specified pen.
public void Widen(XPen pen, XMatrix matrix)
pen
XPen
matrix
XMatrix
Replaces this path with curves that enclose the area that is filled when this path is drawn by the specified pen.
public void Widen(XPen pen, XMatrix matrix, double flatness)
pen
XPen
matrix
XMatrix
flatness
Double