PdfSharp-WPF  1.31.7289
PdfSharp.Drawing.XGraphicsPath Class Reference

Represents a series of connected lines and curves. More...

Public Member Functions

 XGraphicsPath ()
 Initializes a new instance of the XGraphicsPath class. More...
 
XGraphicsPath Clone ()
 Clones this instance. More...
 
void AddLine (System.Windows.Point pt1, System.Windows.Point pt2)
 Adds a line segment to current figure. More...
 
void AddLine (XPoint pt1, XPoint pt2)
 Adds a line segment to current figure. More...
 
void AddLine (int x1, int y1, int x2, int y2)
 Adds a line segment to current figure. More...
 
void AddLine (double x1, double y1, double x2, double y2)
 Adds a line segment to current figure. More...
 
void AddLines (System.Windows.Point[] points)
 Adds a series of connected line segments to current figure. More...
 
void AddLines (XPoint[] points)
 Adds a series of connected line segments to current figure. More...
 
void AddBezier (System.Windows.Point pt1, System.Windows.Point pt2, System.Windows.Point pt3, System.Windows.Point pt4)
 Adds a cubic Bézier curve to the current figure. More...
 
void AddBezier (XPoint pt1, XPoint pt2, XPoint pt3, XPoint pt4)
 Adds a cubic Bézier curve to the current figure. More...
 
void AddBezier (int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)
 Adds a cubic Bézier curve to the current figure. More...
 
void AddBezier (double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4)
 Adds a cubic Bézier curve to the current figure. More...
 
void AddBeziers (System.Windows.Point[] points)
 Adds a sequence of connected cubic Bézier curves to the current figure. More...
 
void AddBeziers (XPoint[] points)
 Adds a sequence of connected cubic Bézier curves to the current figure. More...
 
void AddCurve (System.Windows.Point[] points)
 Adds a spline curve to the current figure. More...
 
void AddCurve (XPoint[] points)
 Adds a spline curve to the current figure. More...
 
void AddCurve (System.Windows.Point[] points, double tension)
 Adds a spline curve to the current figure. More...
 
void AddCurve (XPoint[] points, double tension)
 Adds a spline curve to the current figure. More...
 
void AddCurve (System.Windows.Point[] points, int offset, int numberOfSegments, float tension)
 Adds a spline curve to the current figure. More...
 
void AddCurve (XPoint[] points, int offset, int numberOfSegments, double tension)
 Adds a spline curve to the current figure. More...
 
void AddArc (XRect rect, double startAngle, double sweepAngle)
 Adds an elliptical arc to the current figure. More...
 
void AddArc (int x, int y, int width, int height, int startAngle, int sweepAngle)
 Adds an elliptical arc to the current figure. More...
 
void AddArc (double x, double y, double width, double height, double startAngle, double sweepAngle)
 Adds an elliptical arc to the current figure. More...
 
void AddArc (XPoint point1, XPoint point2, XSize size, double rotationAngle, bool isLargeArg, SweepDirection sweepDirection)
 Adds an elliptical arc to the current figure. The arc is specified WPF like. More...
 
void AddRectangle (XRect rect)
 Adds a rectangle to this path. More...
 
void AddRectangle (int x, int y, int width, int height)
 Adds a rectangle to this path. More...
 
void AddRectangle (double x, double y, double width, double height)
 Adds a rectangle to this path. More...
 
void AddRectangles (XRect[] rects)
 Adds a series of rectangles to this path. More...
 
void AddRoundedRectangle (Rect rect, System.Windows.Size ellipseSize)
 Adds a rectangle with rounded corners to this path. More...
 
void AddRoundedRectangle (int x, int y, int width, int height, int ellipseWidth, int ellipseHeight)
 Adds a rectangle with rounded corners to this path. More...
 
void AddRoundedRectangle (double x, double y, double width, double height, double ellipseWidth, double ellipseHeight)
 Adds a rectangle with rounded corners to this path. More...
 
void AddEllipse (XRect rect)
 Adds an ellipse to the current path. More...
 
void AddEllipse (int x, int y, int width, int height)
 Adds an ellipse to the current path. More...
 
void AddEllipse (double x, double y, double width, double height)
 Adds an ellipse to the current path. More...
 
void AddPolygon (System.Windows.Point[] points)
 Adds a polygon to this path. More...
 
void AddPolygon (XPoint[] points)
 Adds a polygon to this path. More...
 
void AddPie (XRect rect, double startAngle, double sweepAngle)
 Adds the outline of a pie shape to this path. More...
 
void AddPie (int x, int y, int width, int height, double startAngle, double sweepAngle)
 Adds the outline of a pie shape to this path. More...
 
void AddPie (double x, double y, double width, double height, double startAngle, double sweepAngle)
 Adds the outline of a pie shape to this path. More...
 
void AddClosedCurve (System.Windows.Point[] points)
 Adds a closed curve to this path. More...
 
void AddClosedCurve (XPoint[] points)
 Adds a closed curve to this path. More...
 
void AddClosedCurve (System.Windows.Point[] points, double tension)
 Adds a closed curve to this path. More...
 
void AddClosedCurve (XPoint[] points, double tension)
 Adds a closed curve to this path. More...
 
void AddPath (XGraphicsPath path, bool connect)
 Adds the specified path to this path. More...
 
void AddString (string s, XFontFamily family, XFontStyle style, double emSize, System.Windows.Point origin, XStringFormat format)
 Adds a text string to this path. More...
 
void AddString (string s, XFontFamily family, XFontStyle style, double emSize, XPoint origin, XStringFormat format)
 Adds a text string to this path. More...
 
void AddString (string s, XFontFamily family, XFontStyle style, double emSize, Rect rect, XStringFormat format)
 Adds a text string to this path. More...
 
void AddString (string s, XFontFamily family, XFontStyle style, double emSize, XRect layoutRect, XStringFormat format)
 Adds a text string to this path. More...
 
void CloseFigure ()
 Closes the current figure and starts a new figure. More...
 
void StartFigure ()
 Starts a new figure without closing the current figure. More...
 
void Flatten ()
 Converts each curve in this XGraphicsPath into a sequence of connected line segments. More...
 
void Flatten (XMatrix matrix)
 Converts each curve in this XGraphicsPath into a sequence of connected line segments. More...
 
void Flatten (XMatrix matrix, double flatness)
 Converts each curve in this XGraphicsPath into a sequence of connected line segments. More...
 
void Widen (XPen pen)
 Replaces this path with curves that enclose the area that is filled when this path is drawn by the specified pen. More...
 
void Widen (XPen pen, XMatrix matrix)
 Replaces this path with curves that enclose the area that is filled when this path is drawn by the specified pen. More...
 
void Widen (XPen pen, XMatrix matrix, double flatness)
 Replaces this path with curves that enclose the area that is filled when this path is drawn by the specified pen. More...
 

Properties

XFillModeFillMode [get, set]
 Gets or sets an XFillMode that determines how the interiors of shapes are filled. More...
 
XGraphicsPathInternals Internals [get]
 Grants access to internal objects of this class. More...
 

Detailed Description

Represents a series of connected lines and curves.

Constructor & Destructor Documentation

◆ XGraphicsPath()

PdfSharp.Drawing.XGraphicsPath.XGraphicsPath ( )

Initializes a new instance of the XGraphicsPath class.

Member Function Documentation

◆ AddArc() [1/4]

void PdfSharp.Drawing.XGraphicsPath.AddArc ( double  x,
double  y,
double  width,
double  height,
double  startAngle,
double  sweepAngle 
)

Adds an elliptical arc to the current figure.

◆ AddArc() [2/4]

void PdfSharp.Drawing.XGraphicsPath.AddArc ( int  x,
int  y,
int  width,
int  height,
int  startAngle,
int  sweepAngle 
)

Adds an elliptical arc to the current figure.

◆ AddArc() [3/4]

void PdfSharp.Drawing.XGraphicsPath.AddArc ( XPoint  point1,
XPoint  point2,
XSize  size,
double  rotationAngle,
bool  isLargeArg,
SweepDirection  sweepDirection 
)

Adds an elliptical arc to the current figure. The arc is specified WPF like.

◆ AddArc() [4/4]

void PdfSharp.Drawing.XGraphicsPath.AddArc ( XRect  rect,
double  startAngle,
double  sweepAngle 
)

Adds an elliptical arc to the current figure.

◆ AddBezier() [1/4]

void PdfSharp.Drawing.XGraphicsPath.AddBezier ( double  x1,
double  y1,
double  x2,
double  y2,
double  x3,
double  y3,
double  x4,
double  y4 
)

Adds a cubic Bézier curve to the current figure.

◆ AddBezier() [2/4]

void PdfSharp.Drawing.XGraphicsPath.AddBezier ( int  x1,
int  y1,
int  x2,
int  y2,
int  x3,
int  y3,
int  x4,
int  y4 
)

Adds a cubic Bézier curve to the current figure.

◆ AddBezier() [3/4]

void PdfSharp.Drawing.XGraphicsPath.AddBezier ( System.Windows.Point  pt1,
System.Windows.Point  pt2,
System.Windows.Point  pt3,
System.Windows.Point  pt4 
)

Adds a cubic Bézier curve to the current figure.

◆ AddBezier() [4/4]

void PdfSharp.Drawing.XGraphicsPath.AddBezier ( XPoint  pt1,
XPoint  pt2,
XPoint  pt3,
XPoint  pt4 
)

Adds a cubic Bézier curve to the current figure.

◆ AddBeziers() [1/2]

void PdfSharp.Drawing.XGraphicsPath.AddBeziers ( System.Windows.Point[]  points)

Adds a sequence of connected cubic Bézier curves to the current figure.

◆ AddBeziers() [2/2]

void PdfSharp.Drawing.XGraphicsPath.AddBeziers ( XPoint[]  points)

Adds a sequence of connected cubic Bézier curves to the current figure.

◆ AddClosedCurve() [1/4]

void PdfSharp.Drawing.XGraphicsPath.AddClosedCurve ( System.Windows.Point[]  points)

Adds a closed curve to this path.

◆ AddClosedCurve() [2/4]

void PdfSharp.Drawing.XGraphicsPath.AddClosedCurve ( System.Windows.Point[]  points,
double  tension 
)

Adds a closed curve to this path.

◆ AddClosedCurve() [3/4]

void PdfSharp.Drawing.XGraphicsPath.AddClosedCurve ( XPoint[]  points)

Adds a closed curve to this path.

◆ AddClosedCurve() [4/4]

void PdfSharp.Drawing.XGraphicsPath.AddClosedCurve ( XPoint[]  points,
double  tension 
)

Adds a closed curve to this path.

◆ AddCurve() [1/6]

void PdfSharp.Drawing.XGraphicsPath.AddCurve ( System.Windows.Point[]  points)

Adds a spline curve to the current figure.

◆ AddCurve() [2/6]

void PdfSharp.Drawing.XGraphicsPath.AddCurve ( System.Windows.Point[]  points,
double  tension 
)

Adds a spline curve to the current figure.

◆ AddCurve() [3/6]

void PdfSharp.Drawing.XGraphicsPath.AddCurve ( System.Windows.Point[]  points,
int  offset,
int  numberOfSegments,
float  tension 
)

Adds a spline curve to the current figure.

◆ AddCurve() [4/6]

void PdfSharp.Drawing.XGraphicsPath.AddCurve ( XPoint[]  points)

Adds a spline curve to the current figure.

◆ AddCurve() [5/6]

void PdfSharp.Drawing.XGraphicsPath.AddCurve ( XPoint[]  points,
double  tension 
)

Adds a spline curve to the current figure.

◆ AddCurve() [6/6]

void PdfSharp.Drawing.XGraphicsPath.AddCurve ( XPoint[]  points,
int  offset,
int  numberOfSegments,
double  tension 
)

Adds a spline curve to the current figure.

◆ AddEllipse() [1/3]

void PdfSharp.Drawing.XGraphicsPath.AddEllipse ( double  x,
double  y,
double  width,
double  height 
)

Adds an ellipse to the current path.

◆ AddEllipse() [2/3]

void PdfSharp.Drawing.XGraphicsPath.AddEllipse ( int  x,
int  y,
int  width,
int  height 
)

Adds an ellipse to the current path.

◆ AddEllipse() [3/3]

void PdfSharp.Drawing.XGraphicsPath.AddEllipse ( XRect  rect)

Adds an ellipse to the current path.

◆ AddLine() [1/4]

void PdfSharp.Drawing.XGraphicsPath.AddLine ( double  x1,
double  y1,
double  x2,
double  y2 
)

Adds a line segment to current figure.

◆ AddLine() [2/4]

void PdfSharp.Drawing.XGraphicsPath.AddLine ( int  x1,
int  y1,
int  x2,
int  y2 
)

Adds a line segment to current figure.

◆ AddLine() [3/4]

void PdfSharp.Drawing.XGraphicsPath.AddLine ( System.Windows.Point  pt1,
System.Windows.Point  pt2 
)

Adds a line segment to current figure.

◆ AddLine() [4/4]

void PdfSharp.Drawing.XGraphicsPath.AddLine ( XPoint  pt1,
XPoint  pt2 
)

Adds a line segment to current figure.

◆ AddLines() [1/2]

void PdfSharp.Drawing.XGraphicsPath.AddLines ( System.Windows.Point[]  points)

Adds a series of connected line segments to current figure.

◆ AddLines() [2/2]

void PdfSharp.Drawing.XGraphicsPath.AddLines ( XPoint[]  points)

Adds a series of connected line segments to current figure.

◆ AddPath()

void PdfSharp.Drawing.XGraphicsPath.AddPath ( XGraphicsPath  path,
bool  connect 
)

Adds the specified path to this path.

◆ AddPie() [1/3]

void PdfSharp.Drawing.XGraphicsPath.AddPie ( double  x,
double  y,
double  width,
double  height,
double  startAngle,
double  sweepAngle 
)

Adds the outline of a pie shape to this path.

◆ AddPie() [2/3]

void PdfSharp.Drawing.XGraphicsPath.AddPie ( int  x,
int  y,
int  width,
int  height,
double  startAngle,
double  sweepAngle 
)

Adds the outline of a pie shape to this path.

◆ AddPie() [3/3]

void PdfSharp.Drawing.XGraphicsPath.AddPie ( XRect  rect,
double  startAngle,
double  sweepAngle 
)

Adds the outline of a pie shape to this path.

◆ AddPolygon() [1/2]

void PdfSharp.Drawing.XGraphicsPath.AddPolygon ( System.Windows.Point[]  points)

Adds a polygon to this path.

◆ AddPolygon() [2/2]

void PdfSharp.Drawing.XGraphicsPath.AddPolygon ( XPoint[]  points)

Adds a polygon to this path.

◆ AddRectangle() [1/3]

void PdfSharp.Drawing.XGraphicsPath.AddRectangle ( double  x,
double  y,
double  width,
double  height 
)

Adds a rectangle to this path.

◆ AddRectangle() [2/3]

void PdfSharp.Drawing.XGraphicsPath.AddRectangle ( int  x,
int  y,
int  width,
int  height 
)

Adds a rectangle to this path.

◆ AddRectangle() [3/3]

void PdfSharp.Drawing.XGraphicsPath.AddRectangle ( XRect  rect)

Adds a rectangle to this path.

◆ AddRectangles()

void PdfSharp.Drawing.XGraphicsPath.AddRectangles ( XRect[]  rects)

Adds a series of rectangles to this path.

◆ AddRoundedRectangle() [1/3]

void PdfSharp.Drawing.XGraphicsPath.AddRoundedRectangle ( double  x,
double  y,
double  width,
double  height,
double  ellipseWidth,
double  ellipseHeight 
)

Adds a rectangle with rounded corners to this path.

◆ AddRoundedRectangle() [2/3]

void PdfSharp.Drawing.XGraphicsPath.AddRoundedRectangle ( int  x,
int  y,
int  width,
int  height,
int  ellipseWidth,
int  ellipseHeight 
)

Adds a rectangle with rounded corners to this path.

◆ AddRoundedRectangle() [3/3]

void PdfSharp.Drawing.XGraphicsPath.AddRoundedRectangle ( Rect  rect,
System.Windows.Size  ellipseSize 
)

Adds a rectangle with rounded corners to this path.

◆ AddString() [1/4]

void PdfSharp.Drawing.XGraphicsPath.AddString ( string  s,
XFontFamily  family,
XFontStyle  style,
double  emSize,
Rect  rect,
XStringFormat  format 
)

Adds a text string to this path.

◆ AddString() [2/4]

void PdfSharp.Drawing.XGraphicsPath.AddString ( string  s,
XFontFamily  family,
XFontStyle  style,
double  emSize,
System.Windows.Point  origin,
XStringFormat  format 
)

Adds a text string to this path.

◆ AddString() [3/4]

void PdfSharp.Drawing.XGraphicsPath.AddString ( string  s,
XFontFamily  family,
XFontStyle  style,
double  emSize,
XPoint  origin,
XStringFormat  format 
)

Adds a text string to this path.

◆ AddString() [4/4]

void PdfSharp.Drawing.XGraphicsPath.AddString ( string  s,
XFontFamily  family,
XFontStyle  style,
double  emSize,
XRect  layoutRect,
XStringFormat  format 
)

Adds a text string to this path.

◆ Clone()

XGraphicsPath PdfSharp.Drawing.XGraphicsPath.Clone ( )

Clones this instance.

◆ CloseFigure()

void PdfSharp.Drawing.XGraphicsPath.CloseFigure ( )

Closes the current figure and starts a new figure.

◆ Flatten() [1/3]

void PdfSharp.Drawing.XGraphicsPath.Flatten ( )

Converts each curve in this XGraphicsPath into a sequence of connected line segments.

◆ Flatten() [2/3]

void PdfSharp.Drawing.XGraphicsPath.Flatten ( XMatrix  matrix)

Converts each curve in this XGraphicsPath into a sequence of connected line segments.

◆ Flatten() [3/3]

void PdfSharp.Drawing.XGraphicsPath.Flatten ( XMatrix  matrix,
double  flatness 
)

Converts each curve in this XGraphicsPath into a sequence of connected line segments.

◆ StartFigure()

void PdfSharp.Drawing.XGraphicsPath.StartFigure ( )

Starts a new figure without closing the current figure.

◆ Widen() [1/3]

void PdfSharp.Drawing.XGraphicsPath.Widen ( XPen  pen)

Replaces this path with curves that enclose the area that is filled when this path is drawn by the specified pen.

◆ Widen() [2/3]

void PdfSharp.Drawing.XGraphicsPath.Widen ( XPen  pen,
XMatrix  matrix 
)

Replaces this path with curves that enclose the area that is filled when this path is drawn by the specified pen.

◆ Widen() [3/3]

void PdfSharp.Drawing.XGraphicsPath.Widen ( XPen  pen,
XMatrix  matrix,
double  flatness 
)

Replaces this path with curves that enclose the area that is filled when this path is drawn by the specified pen.

Property Documentation

◆ FillMode

XFillMode? PdfSharp.Drawing.XGraphicsPath.FillMode
getset

Gets or sets an XFillMode that determines how the interiors of shapes are filled.

◆ Internals

XGraphicsPathInternals PdfSharp.Drawing.XGraphicsPath.Internals
get

Grants access to internal objects of this class.


The documentation for this class was generated from the following file: