PdfSharp-GDI  1.31.7289
PdfSharp.Drawing.XGraphics Class Reference

Represents a drawing surface (or canvas) for a fixed size page. More...

Inheritance diagram for PdfSharp.Drawing.XGraphics:

Classes

class  SpaceTransformer
 (This class is under construction.) More...
 
class  XGraphicsInternals
 Provides access to internal data structures of the XGraphics class. More...
 

Public Member Functions

void Dispose ()
 Releases all resources used by this object. More...
 
void Clear (XColor color)
 Fills the entire drawing surface with the specified color. The functions works only if the current transformation is identity, i.e. the function should be called only immediately after the XGraphics object was created. More...
 
void DrawLine (XPen pen, System.Drawing.Point pt1, System.Drawing.Point pt2)
 Draws a line connecting two Point structures. More...
 
void DrawLine (XPen pen, PointF pt1, PointF pt2)
 Draws a line connecting two PointF structures. More...
 
void DrawLine (XPen pen, XPoint pt1, XPoint pt2)
 Draws a line connecting two XPoint structures. More...
 
void DrawLine (XPen pen, int x1, int y1, int x2, int y2)
 Draws a line connecting the two points specified by coordinate pairs. More...
 
void DrawLine (XPen pen, double x1, double y1, double x2, double y2)
 Draws a line connecting the two points specified by coordinate pairs. More...
 
void DrawLines (XPen pen, System.Drawing.Point[] points)
 Draws a series of line segments that connect an array of points. More...
 
void DrawLines (XPen pen, PointF[] points)
 Draws a series of line segments that connect an array of points. More...
 
void DrawLines (XPen pen, XPoint[] points)
 Draws a series of line segments that connect an array of points. More...
 
void DrawLines (XPen pen, double x, double y, params double[] value)
 Draws a series of line segments that connect an array of x and y pairs. More...
 
void DrawBezier (XPen pen, System.Drawing.Point pt1, System.Drawing.Point pt2, System.Drawing.Point pt3, System.Drawing.Point pt4)
 Draws a Bézier spline defined by four points. More...
 
void DrawBezier (XPen pen, PointF pt1, PointF pt2, PointF pt3, PointF pt4)
 Draws a Bézier spline defined by four points. More...
 
void DrawBezier (XPen pen, XPoint pt1, XPoint pt2, XPoint pt3, XPoint pt4)
 Draws a Bézier spline defined by four points. More...
 
void DrawBezier (XPen pen, double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4)
 Draws a Bézier spline defined by four points. More...
 
void DrawBeziers (XPen pen, System.Drawing.Point[] points)
 Draws a series of Bézier splines from an array of points. More...
 
void DrawBeziers (XPen pen, PointF[] points)
 Draws a series of Bézier splines from an array of points. More...
 
void DrawBeziers (XPen pen, XPoint[] points)
 Draws a series of Bézier splines from an array of points. More...
 
void DrawCurve (XPen pen, System.Drawing.Point[] points)
 Draws a cardinal spline through a specified array of points. More...
 
void DrawCurve (XPen pen, PointF[] points)
 Draws a cardinal spline through a specified array of points. More...
 
void DrawCurve (XPen pen, XPoint[] points)
 Draws a cardinal spline through a specified array of points. More...
 
void DrawCurve (XPen pen, System.Drawing.Point[] points, double tension)
 Draws a cardinal spline through a specified array of points using a specified tension. More...
 
void DrawCurve (XPen pen, PointF[] points, double tension)
 Draws a cardinal spline through a specified array of points using a specified tension. More...
 
void DrawCurve (XPen pen, XPoint[] points, double tension)
 Draws a cardinal spline through a specified array of points using a specified tension. More...
 
void DrawArc (XPen pen, Rectangle rect, double startAngle, double sweepAngle)
 Draws an arc representing a portion of an ellipse. More...
 
void DrawArc (XPen pen, RectangleF rect, double startAngle, double sweepAngle)
 Draws an arc representing a portion of an ellipse. More...
 
void DrawArc (XPen pen, XRect rect, double startAngle, double sweepAngle)
 Draws an arc representing a portion of an ellipse. More...
 
void DrawArc (XPen pen, int x, int y, int width, int height, int startAngle, int sweepAngle)
 Draws an arc representing a portion of an ellipse. More...
 
void DrawArc (XPen pen, double x, double y, double width, double height, double startAngle, double sweepAngle)
 Draws an arc representing a portion of an ellipse. More...
 
void DrawRectangle (XPen pen, Rectangle rect)
 Draws a rectangle. More...
 
void DrawRectangle (XPen pen, RectangleF rect)
 Draws a rectangle. More...
 
void DrawRectangle (XPen pen, XRect rect)
 Draws a rectangle. More...
 
void DrawRectangle (XPen pen, int x, int y, int width, int height)
 Draws a rectangle. More...
 
void DrawRectangle (XPen pen, double x, double y, double width, double height)
 Draws a rectangle. More...
 
void DrawRectangle (XBrush brush, Rectangle rect)
 Draws a rectangle. More...
 
void DrawRectangle (XBrush brush, RectangleF rect)
 Draws a rectangle. More...
 
void DrawRectangle (XBrush brush, XRect rect)
 Draws a rectangle. More...
 
void DrawRectangle (XBrush brush, int x, int y, int width, int height)
 Draws a rectangle. More...
 
void DrawRectangle (XBrush brush, double x, double y, double width, double height)
 Draws a rectangle. More...
 
void DrawRectangle (XPen pen, XBrush brush, Rectangle rect)
 Draws a rectangle. More...
 
void DrawRectangle (XPen pen, XBrush brush, RectangleF rect)
 Draws a rectangle. More...
 
void DrawRectangle (XPen pen, XBrush brush, XRect rect)
 Draws a rectangle. More...
 
void DrawRectangle (XPen pen, XBrush brush, int x, int y, int width, int height)
 Draws a rectangle. More...
 
void DrawRectangle (XPen pen, XBrush brush, double x, double y, double width, double height)
 Draws a rectangle. More...
 
void DrawRectangles (XPen pen, Rectangle[] rectangles)
 Draws a series of rectangles. More...
 
void DrawRectangles (XPen pen, RectangleF[] rectangles)
 Draws a series of rectangles. More...
 
void DrawRectangles (XPen pen, XRect[] rectangles)
 Draws a series of rectangles. More...
 
void DrawRectangles (XBrush brush, Rectangle[] rectangles)
 Draws a series of rectangles. More...
 
void DrawRectangles (XBrush brush, RectangleF[] rectangles)
 Draws a series of rectangles. More...
 
void DrawRectangles (XBrush brush, XRect[] rectangles)
 Draws a series of rectangles. More...
 
void DrawRectangles (XPen pen, XBrush brush, Rectangle[] rectangles)
 Draws a series of rectangles. More...
 
void DrawRectangles (XPen pen, XBrush brush, RectangleF[] rectangles)
 Draws a series of rectangles. More...
 
void DrawRectangles (XPen pen, XBrush brush, XRect[] rectangles)
 Draws a series of rectangles. More...
 
void DrawRoundedRectangle (XPen pen, Rectangle rect, System.Drawing.Size ellipseSize)
 Draws a rectangles with round corners. More...
 
void DrawRoundedRectangle (XPen pen, RectangleF rect, SizeF ellipseSize)
 Draws a rectangles with round corners. More...
 
void DrawRoundedRectangle (XPen pen, XRect rect, XSize ellipseSize)
 Draws a rectangles with round corners. More...
 
void DrawRoundedRectangle (XPen pen, int x, int y, int width, int height, int ellipseWidth, int ellipseHeight)
 Draws a rectangles with round corners. More...
 
void DrawRoundedRectangle (XPen pen, double x, double y, double width, double height, double ellipseWidth, double ellipseHeight)
 Draws a rectangles with round corners. More...
 
void DrawRoundedRectangle (XBrush brush, Rectangle rect, System.Drawing.Size ellipseSize)
 Draws a rectangles with round corners. More...
 
void DrawRoundedRectangle (XBrush brush, RectangleF rect, SizeF ellipseSize)
 Draws a rectangles with round corners. More...
 
void DrawRoundedRectangle (XBrush brush, XRect rect, XSize ellipseSize)
 Draws a rectangles with round corners. More...
 
void DrawRoundedRectangle (XBrush brush, int x, int y, int width, int height, int ellipseWidth, int ellipseHeight)
 Draws a rectangles with round corners. More...
 
void DrawRoundedRectangle (XBrush brush, double x, double y, double width, double height, double ellipseWidth, double ellipseHeight)
 Draws a rectangles with round corners. More...
 
void DrawRoundedRectangle (XPen pen, XBrush brush, Rectangle rect, System.Drawing.Size ellipseSize)
 Draws a rectangles with round corners. More...
 
void DrawRoundedRectangle (XPen pen, XBrush brush, RectangleF rect, SizeF ellipseSize)
 Draws a rectangles with round corners. More...
 
void DrawRoundedRectangle (XPen pen, XBrush brush, XRect rect, XSize ellipseSize)
 Draws a rectangles with round corners. More...
 
void DrawRoundedRectangle (XPen pen, XBrush brush, int x, int y, int width, int height, int ellipseWidth, int ellipseHeight)
 Draws a rectangles with round corners. More...
 
void DrawRoundedRectangle (XPen pen, XBrush brush, double x, double y, double width, double height, double ellipseWidth, double ellipseHeight)
 Draws a rectangles with round corners. More...
 
void DrawEllipse (XPen pen, Rectangle rect)
 Draws an ellipse defined by a bounding rectangle. More...
 
void DrawEllipse (XPen pen, RectangleF rect)
 Draws an ellipse defined by a bounding rectangle. More...
 
void DrawEllipse (XPen pen, XRect rect)
 Draws an ellipse defined by a bounding rectangle. More...
 
void DrawEllipse (XPen pen, int x, int y, int width, int height)
 Draws an ellipse defined by a bounding rectangle. More...
 
void DrawEllipse (XPen pen, double x, double y, double width, double height)
 Draws an ellipse defined by a bounding rectangle. More...
 
void DrawEllipse (XBrush brush, Rectangle rect)
 Draws an ellipse defined by a bounding rectangle. More...
 
void DrawEllipse (XBrush brush, RectangleF rect)
 Draws an ellipse defined by a bounding rectangle. More...
 
void DrawEllipse (XBrush brush, XRect rect)
 Draws an ellipse defined by a bounding rectangle. More...
 
void DrawEllipse (XBrush brush, int x, int y, int width, int height)
 Draws an ellipse defined by a bounding rectangle. More...
 
void DrawEllipse (XBrush brush, double x, double y, double width, double height)
 Draws an ellipse defined by a bounding rectangle. More...
 
void DrawEllipse (XPen pen, XBrush brush, Rectangle rect)
 Draws an ellipse defined by a bounding rectangle. More...
 
void DrawEllipse (XPen pen, XBrush brush, RectangleF rect)
 Draws an ellipse defined by a bounding rectangle. More...
 
void DrawEllipse (XPen pen, XBrush brush, XRect rect)
 Draws an ellipse defined by a bounding rectangle. More...
 
void DrawEllipse (XPen pen, XBrush brush, int x, int y, int width, int height)
 Draws an ellipse defined by a bounding rectangle. More...
 
void DrawEllipse (XPen pen, XBrush brush, double x, double y, double width, double height)
 Draws an ellipse defined by a bounding rectangle. More...
 
void DrawPolygon (XPen pen, System.Drawing.Point[] points)
 Draws a polygon defined by an array of points. More...
 
void DrawPolygon (XPen pen, PointF[] points)
 Draws a polygon defined by an array of points. More...
 
void DrawPolygon (XPen pen, XPoint[] points)
 Draws a polygon defined by an array of points. More...
 
void DrawPolygon (XBrush brush, System.Drawing.Point[] points, XFillMode fillmode)
 Draws a polygon defined by an array of points. More...
 
void DrawPolygon (XBrush brush, PointF[] points, XFillMode fillmode)
 Draws a polygon defined by an array of points. More...
 
void DrawPolygon (XBrush brush, XPoint[] points, XFillMode fillmode)
 Draws a polygon defined by an array of points. More...
 
void DrawPolygon (XPen pen, XBrush brush, System.Drawing.Point[] points, XFillMode fillmode)
 Draws a polygon defined by an array of points. More...
 
void DrawPolygon (XPen pen, XBrush brush, PointF[] points, XFillMode fillmode)
 Draws a polygon defined by an array of points. More...
 
void DrawPolygon (XPen pen, XBrush brush, XPoint[] points, XFillMode fillmode)
 Draws a polygon defined by an array of points. More...
 
void DrawPie (XPen pen, Rectangle rect, double startAngle, double sweepAngle)
 Draws a pie defined by an ellipse. More...
 
void DrawPie (XPen pen, RectangleF rect, double startAngle, double sweepAngle)
 Draws a pie defined by an ellipse. More...
 
void DrawPie (XPen pen, XRect rect, double startAngle, double sweepAngle)
 Draws a pie defined by an ellipse. More...
 
void DrawPie (XPen pen, int x, int y, int width, int height, int startAngle, int sweepAngle)
 Draws a pie defined by an ellipse. More...
 
void DrawPie (XPen pen, double x, double y, double width, double height, double startAngle, double sweepAngle)
 Draws a pie defined by an ellipse. More...
 
void DrawPie (XBrush brush, Rectangle rect, double startAngle, double sweepAngle)
 Draws a pie defined by an ellipse. More...
 
void DrawPie (XBrush brush, RectangleF rect, double startAngle, double sweepAngle)
 Draws a pie defined by an ellipse. More...
 
void DrawPie (XBrush brush, XRect rect, double startAngle, double sweepAngle)
 Draws a pie defined by an ellipse. More...
 
void DrawPie (XBrush brush, int x, int y, int width, int height, int startAngle, int sweepAngle)
 Draws a pie defined by an ellipse. More...
 
void DrawPie (XBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle)
 Draws a pie defined by an ellipse. More...
 
void DrawPie (XPen pen, XBrush brush, Rectangle rect, double startAngle, double sweepAngle)
 Draws a pie defined by an ellipse. More...
 
void DrawPie (XPen pen, XBrush brush, RectangleF rect, double startAngle, double sweepAngle)
 Draws a pie defined by an ellipse. More...
 
void DrawPie (XPen pen, XBrush brush, XRect rect, double startAngle, double sweepAngle)
 Draws a pie defined by an ellipse. More...
 
void DrawPie (XPen pen, XBrush brush, int x, int y, int width, int height, int startAngle, int sweepAngle)
 Draws a pie defined by an ellipse. More...
 
void DrawPie (XPen pen, XBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle)
 Draws a pie defined by an ellipse. More...
 
void DrawClosedCurve (XPen pen, System.Drawing.Point[] points)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XPen pen, PointF[] points)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XPen pen, XPoint[] points)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XPen pen, System.Drawing.Point[] points, double tension)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XPen pen, PointF[] points, double tension)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XPen pen, XPoint[] points, double tension)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XBrush brush, System.Drawing.Point[] points)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XBrush brush, PointF[] points)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XBrush brush, XPoint[] points)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XBrush brush, System.Drawing.Point[] points, XFillMode fillmode)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XBrush brush, PointF[] points, XFillMode fillmode)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XBrush brush, XPoint[] points, XFillMode fillmode)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XBrush brush, System.Drawing.Point[] points, XFillMode fillmode, double tension)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XBrush brush, PointF[] points, XFillMode fillmode, double tension)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XBrush brush, XPoint[] points, XFillMode fillmode, double tension)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XPen pen, XBrush brush, System.Drawing.Point[] points)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XPen pen, XBrush brush, PointF[] points)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XPen pen, XBrush brush, XPoint[] points)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XPen pen, XBrush brush, System.Drawing.Point[] points, XFillMode fillmode)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XPen pen, XBrush brush, PointF[] points, XFillMode fillmode)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XPen pen, XBrush brush, XPoint[] points, XFillMode fillmode)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XPen pen, XBrush brush, System.Drawing.Point[] points, XFillMode fillmode, double tension)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XPen pen, XBrush brush, PointF[] points, XFillMode fillmode, double tension)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawClosedCurve (XPen pen, XBrush brush, XPoint[] points, XFillMode fillmode, double tension)
 Draws a closed cardinal spline defined by an array of points. More...
 
void DrawPath (XPen pen, XGraphicsPath path)
 Draws a graphical path. More...
 
void DrawPath (XBrush brush, XGraphicsPath path)
 Draws a graphical path. More...
 
void DrawPath (XPen pen, XBrush brush, XGraphicsPath path)
 Draws a graphical path. More...
 
void DrawString (string s, XFont font, XBrush brush, PointF point)
 Draws the specified text string. More...
 
void DrawString (string s, XFont font, XBrush brush, XPoint point)
 Draws the specified text string. More...
 
void DrawString (string s, XFont font, XBrush brush, PointF point, XStringFormat format)
 Draws the specified text string. More...
 
void DrawString (string s, XFont font, XBrush brush, XPoint point, XStringFormat format)
 Draws the specified text string. More...
 
void DrawString (string s, XFont font, XBrush brush, double x, double y)
 Draws the specified text string. More...
 
void DrawString (string s, XFont font, XBrush brush, double x, double y, XStringFormat format)
 Draws the specified text string. More...
 
void DrawString (string s, XFont font, XBrush brush, RectangleF layoutRectangle)
 Draws the specified text string. More...
 
void DrawString (string s, XFont font, XBrush brush, XRect layoutRectangle)
 Draws the specified text string. More...
 
void DrawString (string s, XFont font, XBrush brush, RectangleF layoutRectangle, XStringFormat format)
 Draws the specified text string. More...
 
void DrawString (string text, XFont font, XBrush brush, XRect layoutRectangle, XStringFormat format)
 Draws the specified text string. More...
 
XSize MeasureString (string text, XFont font, XStringFormat stringFormat)
 Measures the specified string when drawn with the specified font. More...
 
XSize MeasureString (string text, XFont font)
 Measures the specified string when drawn with the specified font. More...
 
void DrawImage (XImage image, System.Drawing.Point point)
 Draws the specified image. More...
 
void DrawImage (XImage image, PointF point)
 Draws the specified image. More...
 
void DrawImage (XImage image, XPoint point)
 Draws the specified image. More...
 
void DrawImage (XImage image, int x, int y)
 Draws the specified image. More...
 
void DrawImage (XImage image, double x, double y)
 Draws the specified image. More...
 
void DrawImage (XImage image, Rectangle rect)
 Draws the specified image. More...
 
void DrawImage (XImage image, RectangleF rect)
 Draws the specified image. More...
 
void DrawImage (XImage image, XRect rect)
 Draws the specified image. More...
 
void DrawImage (XImage image, int x, int y, int width, int height)
 Draws the specified image. More...
 
void DrawImage (XImage image, double x, double y, double width, double height)
 Draws the specified image. More...
 
void DrawImage (XImage image, Rectangle destRect, Rectangle srcRect, XGraphicsUnit srcUnit)
 Draws the specified image. More...
 
void DrawImage (XImage image, RectangleF destRect, RectangleF srcRect, XGraphicsUnit srcUnit)
 Draws the specified image. More...
 
void DrawImage (XImage image, XRect destRect, XRect srcRect, XGraphicsUnit srcUnit)
 Draws the specified image. More...
 
void DrawBarCode (BarCodes.BarCode barcode, XPoint position)
 Draws the specified bar code. More...
 
void DrawBarCode (BarCodes.BarCode barcode, XBrush brush, XPoint position)
 Draws the specified bar code. More...
 
void DrawBarCode (BarCodes.BarCode barcode, XBrush brush, XFont font, XPoint position)
 Draws the specified bar code. More...
 
void DrawMatrixCode (BarCodes.MatrixCode matrixcode, XPoint position)
 Draws the specified data matrix code. More...
 
void DrawMatrixCode (BarCodes.MatrixCode matrixcode, XBrush brush, XPoint position)
 Draws the specified data matrix code. More...
 
XGraphicsState Save ()
 Saves the current state of this XGraphics object and identifies the saved state with the returned XGraphicsState object. More...
 
void Restore (XGraphicsState state)
 Restores the state of this XGraphics object to the state represented by the specified XGraphicsState object. More...
 
void Restore ()
 Restores the state of this XGraphics object to the state before the most recently call of Save. More...
 
XGraphicsContainer BeginContainer ()
 Saves a graphics container with the current state of this XGraphics and opens and uses a new graphics container. More...
 
XGraphicsContainer BeginContainer (Rectangle dstrect, Rectangle srcrect, XGraphicsUnit unit)
 Saves a graphics container with the current state of this XGraphics and opens and uses a new graphics container. More...
 
XGraphicsContainer BeginContainer (RectangleF dstrect, RectangleF srcrect, XGraphicsUnit unit)
 Saves a graphics container with the current state of this XGraphics and opens and uses a new graphics container. More...
 
XGraphicsContainer BeginContainer (XRect dstrect, XRect srcrect, XGraphicsUnit unit)
 Saves a graphics container with the current state of this XGraphics and opens and uses a new graphics container. More...
 
void EndContainer (XGraphicsContainer container)
 Closes the current graphics container and restores the state of this XGraphics to the state saved by a call to the BeginContainer method. More...
 
void TranslateTransform (double dx, double dy)
 Applies the specified translation operation to the transformation matrix of this object by prepending it to the object's transformation matrix. More...
 
void TranslateTransform (double dx, double dy, XMatrixOrder order)
 Applies the specified translation operation to the transformation matrix of this object in the specified order. More...
 
void ScaleTransform (double scaleX, double scaleY)
 Applies the specified scaling operation to the transformation matrix of this object by prepending it to the object's transformation matrix. More...
 
void ScaleTransform (double scaleX, double scaleY, XMatrixOrder order)
 Applies the specified scaling operation to the transformation matrix of this object in the specified order. More...
 
void ScaleTransform (double scaleXY)
 Applies the specified scaling operation to the transformation matrix of this object by prepending it to the object's transformation matrix. More...
 
void ScaleTransform (double scaleXY, XMatrixOrder order)
 Applies the specified scaling operation to the transformation matrix of this object in the specified order. More...
 
void RotateTransform (double angle)
 Applies the specified rotation operation to the transformation matrix of this object by prepending it to the object's transformation matrix. More...
 
void RotateTransform (double angle, XMatrixOrder order)
 Applies the specified rotation operation to the transformation matrix of this object in the specified order. The angle unit of measure is degree. More...
 
void RotateAtTransform (double angle, XPoint point)
 Applies the specified rotation operation to the transformation matrix of this object by prepending it to the object's transformation matrix. More...
 
void RotateAtTransform (double angle, XPoint point, XMatrixOrder order)
 Applies the specified rotation operation to the transformation matrix of this object by prepending it to the object's transformation matrix. More...
 
void ShearTransform (double shearX, double shearY)
 Applies the specified shearing operation to the transformation matrix of this object by prepending it to the object's transformation matrix. More...
 
void ShearTransform (double shearX, double shearY, XMatrixOrder order)
 Applies the specified shearing operation to the transformation matrix of this object in the specified order. More...
 
void MultiplyTransform (XMatrix matrix)
 Multiplies the transformation matrix of this object and specified matrix. More...
 
void MultiplyTransform (XMatrix matrix, XMatrixOrder order)
 Multiplies the transformation matrix of this object and specified matrix in the specified order. More...
 
void ResetTransform ()
 Resets the transformation matrix of this object to the identity matrix. More...
 
void SetClip (Rectangle rect)
 Sets the clipping region to the specified rectangle. More...
 
void SetClip (RectangleF rect)
 Sets the clipping region to the specified rectangle. More...
 
void SetClip (XRect rect)
 Sets the clipping region to the specified rectangle. More...
 
void SetClip (XGraphicsPath path)
 Sets the clipping region to the specified graphical path. More...
 
void SetClip (XRect rect, XCombineMode combineMode)
 Sets the clipping region to the specified graphical path. More...
 
void SetClip (XGraphicsPath path, XCombineMode combineMode)
 Sets the clipping region to the specified graphical path. More...
 
void IntersectClip (Rectangle rect)
 Updates the clip region of this XGraphics to the intersection of the current clip region and the specified rectangle. More...
 
void IntersectClip (RectangleF rect)
 Updates the clip region of this XGraphics to the intersection of the current clip region and the specified rectangle. More...
 
void IntersectClip (XRect rect)
 Updates the clip region of this XGraphics to the intersection of the current clip region and the specified rectangle. More...
 
void IntersectClip (XGraphicsPath path)
 Updates the clip region of this XGraphics to the intersection of the current clip region and the specified graphical path. More...
 
void ResetClip ()
 Resets the clip region of this XGraphics to an infinite region, i.e. no clipping takes place. More...
 
void WriteComment (string comment)
 Writes a comment to the output stream. Comments have no effect on the rendering of the output. They may be useful to mark a position in a content stream of a PDF document. More...
 

Static Public Member Functions

static XGraphics CreateMeasureContext (XSize size, XGraphicsUnit pageUnit, XPageDirection pageDirection)
 Creates the measure context. This is a graphics context created only for querying measures of text. Drawing on a measure context has no effect. More...
 
static XGraphics FromGraphics (Graphics graphics, XSize size)
 Creates a new instance of the XGraphics class from a System.Drawing.Graphics object. More...
 
static XGraphics FromGraphics (Graphics graphics, XSize size, XGraphicsUnit unit)
 Creates a new instance of the XGraphics class from a System.Drawing.Graphics object. More...
 
static XGraphics FromPdfPage (PdfPage page)
 Creates a new instance of the XGraphics class from a PdfSharp.Pdf.PdfPage object. More...
 
static XGraphics FromPdfPage (PdfPage page, XGraphicsUnit unit)
 Creates a new instance of the XGraphics class from a PdfSharp.Pdf.PdfPage object. More...
 
static XGraphics FromPdfPage (PdfPage page, XPageDirection pageDirection)
 Creates a new instance of the XGraphics class from a PdfSharp.Pdf.PdfPage object. More...
 
static XGraphics FromPdfPage (PdfPage page, XGraphicsPdfPageOptions options)
 Creates a new instance of the XGraphics class from a PdfSharp.Pdf.PdfPage object. More...
 
static XGraphics FromPdfPage (PdfPage page, XGraphicsPdfPageOptions options, XPageDirection pageDirection)
 Creates a new instance of the XGraphics class from a PdfSharp.Pdf.PdfPage object. More...
 
static XGraphics FromPdfPage (PdfPage page, XGraphicsPdfPageOptions options, XGraphicsUnit unit)
 Creates a new instance of the XGraphics class from a PdfSharp.Pdf.PdfPage object. More...
 
static XGraphics FromPdfPage (PdfPage page, XGraphicsPdfPageOptions options, XGraphicsUnit unit, XPageDirection pageDirection)
 Creates a new instance of the XGraphics class from a PdfSharp.Pdf.PdfPage object. More...
 
static XGraphics FromPdfForm (XPdfForm form)
 Creates a new instance of the XGraphics class from a PdfSharp.Drawing.XPdfForm object. More...
 
static XGraphics FromForm (XForm form)
 Creates a new instance of the XGraphics class from a PdfSharp.Drawing.XForm object. More...
 

Properties

PdfFontEncoding MUH [get, set]
 Internal hack for MigraDoc. Will be removed in further releases. Unicode support requires a global refactoring of MigraDoc and will be done in further releases. More...
 
PdfFontEmbedding MFEH [get, set]
 Internal hack for MigraDoc. Will be removed in further releases. Font embedding support requires a global refactoring of MigraDoc and will be done in further releases. More...
 
XGraphicsUnit PageUnit [get]
 Gets or sets the unit of measure used for page coordinates. CURRENTLY ONLY POINT IS IMPLEMENTED. More...
 
XPageDirection PageDirection [get, set]
 Gets or sets the a value indicating in which direction y-value grow. More...
 
XPoint PageOrigin [get, set]
 Gets the current page origin. Setting the origin is not yet implemented. More...
 
XSize PageSize [get]
 Gets the current size of the page. More...
 
int GraphicsStateLevel [get]
 Gets the current graphics state level. The default value is 0. Each call of Save or BeginContainer increased and each call of Restore or EndContainer decreased the value by 1. More...
 
XSmoothingMode SmoothingMode [get, set]
 Gets or sets the smoothing mode. More...
 
XMatrix Transform [get, set]
 Gets or sets the transformation matrix. More...
 
XGraphicsInternals Internals [get]
 Permits access to internal data. More...
 
SpaceTransformer Transformer [get]
 (Under construction. May change in future versions.) More...
 
PdfPagePdfPage [get]
 Gets the PDF page that serves as drawing surface if PDF is rendered, otherwise null. More...
 
Graphics Graphics [get]
 Gets the System.Drawing.Graphics objects that serves as drawing surface if no PDF is rendered, or null, if no such object exists. More...
 

Detailed Description

Represents a drawing surface (or canvas) for a fixed size page.

Member Function Documentation

◆ BeginContainer() [1/4]

XGraphicsContainer PdfSharp.Drawing.XGraphics.BeginContainer ( )

Saves a graphics container with the current state of this XGraphics and opens and uses a new graphics container.

◆ BeginContainer() [2/4]

XGraphicsContainer PdfSharp.Drawing.XGraphics.BeginContainer ( Rectangle  dstrect,
Rectangle  srcrect,
XGraphicsUnit  unit 
)

Saves a graphics container with the current state of this XGraphics and opens and uses a new graphics container.

◆ BeginContainer() [3/4]

XGraphicsContainer PdfSharp.Drawing.XGraphics.BeginContainer ( RectangleF  dstrect,
RectangleF  srcrect,
XGraphicsUnit  unit 
)

Saves a graphics container with the current state of this XGraphics and opens and uses a new graphics container.

◆ BeginContainer() [4/4]

XGraphicsContainer PdfSharp.Drawing.XGraphics.BeginContainer ( XRect  dstrect,
XRect  srcrect,
XGraphicsUnit  unit 
)

Saves a graphics container with the current state of this XGraphics and opens and uses a new graphics container.

◆ Clear()

void PdfSharp.Drawing.XGraphics.Clear ( XColor  color)

Fills the entire drawing surface with the specified color. The functions works only if the current transformation is identity, i.e. the function should be called only immediately after the XGraphics object was created.

◆ CreateMeasureContext()

static XGraphics PdfSharp.Drawing.XGraphics.CreateMeasureContext ( XSize  size,
XGraphicsUnit  pageUnit,
XPageDirection  pageDirection 
)
static

Creates the measure context. This is a graphics context created only for querying measures of text. Drawing on a measure context has no effect.

◆ Dispose()

void PdfSharp.Drawing.XGraphics.Dispose ( )

Releases all resources used by this object.

◆ DrawArc() [1/5]

void PdfSharp.Drawing.XGraphics.DrawArc ( XPen  pen,
double  x,
double  y,
double  width,
double  height,
double  startAngle,
double  sweepAngle 
)

Draws an arc representing a portion of an ellipse.

◆ DrawArc() [2/5]

void PdfSharp.Drawing.XGraphics.DrawArc ( XPen  pen,
int  x,
int  y,
int  width,
int  height,
int  startAngle,
int  sweepAngle 
)

Draws an arc representing a portion of an ellipse.

◆ DrawArc() [3/5]

void PdfSharp.Drawing.XGraphics.DrawArc ( XPen  pen,
Rectangle  rect,
double  startAngle,
double  sweepAngle 
)

Draws an arc representing a portion of an ellipse.

◆ DrawArc() [4/5]

void PdfSharp.Drawing.XGraphics.DrawArc ( XPen  pen,
RectangleF  rect,
double  startAngle,
double  sweepAngle 
)

Draws an arc representing a portion of an ellipse.

◆ DrawArc() [5/5]

void PdfSharp.Drawing.XGraphics.DrawArc ( XPen  pen,
XRect  rect,
double  startAngle,
double  sweepAngle 
)

Draws an arc representing a portion of an ellipse.

◆ DrawBarCode() [1/3]

void PdfSharp.Drawing.XGraphics.DrawBarCode ( BarCodes.BarCode  barcode,
XBrush  brush,
XFont  font,
XPoint  position 
)

Draws the specified bar code.

◆ DrawBarCode() [2/3]

void PdfSharp.Drawing.XGraphics.DrawBarCode ( BarCodes.BarCode  barcode,
XBrush  brush,
XPoint  position 
)

Draws the specified bar code.

◆ DrawBarCode() [3/3]

void PdfSharp.Drawing.XGraphics.DrawBarCode ( BarCodes.BarCode  barcode,
XPoint  position 
)

Draws the specified bar code.

◆ DrawBezier() [1/4]

void PdfSharp.Drawing.XGraphics.DrawBezier ( XPen  pen,
double  x1,
double  y1,
double  x2,
double  y2,
double  x3,
double  y3,
double  x4,
double  y4 
)

Draws a Bézier spline defined by four points.

◆ DrawBezier() [2/4]

void PdfSharp.Drawing.XGraphics.DrawBezier ( XPen  pen,
PointF  pt1,
PointF  pt2,
PointF  pt3,
PointF  pt4 
)

Draws a Bézier spline defined by four points.

◆ DrawBezier() [3/4]

void PdfSharp.Drawing.XGraphics.DrawBezier ( XPen  pen,
System.Drawing.Point  pt1,
System.Drawing.Point  pt2,
System.Drawing.Point  pt3,
System.Drawing.Point  pt4 
)

Draws a Bézier spline defined by four points.

◆ DrawBezier() [4/4]

void PdfSharp.Drawing.XGraphics.DrawBezier ( XPen  pen,
XPoint  pt1,
XPoint  pt2,
XPoint  pt3,
XPoint  pt4 
)

Draws a Bézier spline defined by four points.

◆ DrawBeziers() [1/3]

void PdfSharp.Drawing.XGraphics.DrawBeziers ( XPen  pen,
PointF[]  points 
)

Draws a series of Bézier splines from an array of points.

◆ DrawBeziers() [2/3]

void PdfSharp.Drawing.XGraphics.DrawBeziers ( XPen  pen,
System.Drawing.Point[]  points 
)

Draws a series of Bézier splines from an array of points.

◆ DrawBeziers() [3/3]

void PdfSharp.Drawing.XGraphics.DrawBeziers ( XPen  pen,
XPoint[]  points 
)

Draws a series of Bézier splines from an array of points.

◆ DrawClosedCurve() [1/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XBrush  brush,
PointF[]  points 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [2/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XBrush  brush,
PointF[]  points,
XFillMode  fillmode 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [3/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XBrush  brush,
PointF[]  points,
XFillMode  fillmode,
double  tension 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [4/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XBrush  brush,
System.Drawing.Point[]  points 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [5/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XBrush  brush,
System.Drawing.Point[]  points,
XFillMode  fillmode 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [6/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XBrush  brush,
System.Drawing.Point[]  points,
XFillMode  fillmode,
double  tension 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [7/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XBrush  brush,
XPoint[]  points 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [8/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XBrush  brush,
XPoint[]  points,
XFillMode  fillmode 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [9/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XBrush  brush,
XPoint[]  points,
XFillMode  fillmode,
double  tension 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [10/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XPen  pen,
PointF[]  points 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [11/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XPen  pen,
PointF[]  points,
double  tension 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [12/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XPen  pen,
System.Drawing.Point[]  points 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [13/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XPen  pen,
System.Drawing.Point[]  points,
double  tension 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [14/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XPen  pen,
XBrush  brush,
PointF[]  points 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [15/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XPen  pen,
XBrush  brush,
PointF[]  points,
XFillMode  fillmode 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [16/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XPen  pen,
XBrush  brush,
PointF[]  points,
XFillMode  fillmode,
double  tension 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [17/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XPen  pen,
XBrush  brush,
System.Drawing.Point[]  points 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [18/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XPen  pen,
XBrush  brush,
System.Drawing.Point[]  points,
XFillMode  fillmode 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [19/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XPen  pen,
XBrush  brush,
System.Drawing.Point[]  points,
XFillMode  fillmode,
double  tension 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [20/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XPen  pen,
XBrush  brush,
XPoint[]  points 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [21/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XPen  pen,
XBrush  brush,
XPoint[]  points,
XFillMode  fillmode 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [22/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XPen  pen,
XBrush  brush,
XPoint[]  points,
XFillMode  fillmode,
double  tension 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [23/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XPen  pen,
XPoint[]  points 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawClosedCurve() [24/24]

void PdfSharp.Drawing.XGraphics.DrawClosedCurve ( XPen  pen,
XPoint[]  points,
double  tension 
)

Draws a closed cardinal spline defined by an array of points.

◆ DrawCurve() [1/6]

void PdfSharp.Drawing.XGraphics.DrawCurve ( XPen  pen,
PointF[]  points 
)

Draws a cardinal spline through a specified array of points.

◆ DrawCurve() [2/6]

void PdfSharp.Drawing.XGraphics.DrawCurve ( XPen  pen,
PointF[]  points,
double  tension 
)

Draws a cardinal spline through a specified array of points using a specified tension.

◆ DrawCurve() [3/6]

void PdfSharp.Drawing.XGraphics.DrawCurve ( XPen  pen,
System.Drawing.Point[]  points 
)

Draws a cardinal spline through a specified array of points.

◆ DrawCurve() [4/6]

void PdfSharp.Drawing.XGraphics.DrawCurve ( XPen  pen,
System.Drawing.Point[]  points,
double  tension 
)

Draws a cardinal spline through a specified array of points using a specified tension.

◆ DrawCurve() [5/6]

void PdfSharp.Drawing.XGraphics.DrawCurve ( XPen  pen,
XPoint[]  points 
)

Draws a cardinal spline through a specified array of points.

◆ DrawCurve() [6/6]

void PdfSharp.Drawing.XGraphics.DrawCurve ( XPen  pen,
XPoint[]  points,
double  tension 
)

Draws a cardinal spline through a specified array of points using a specified tension.

◆ DrawEllipse() [1/15]

void PdfSharp.Drawing.XGraphics.DrawEllipse ( XBrush  brush,
double  x,
double  y,
double  width,
double  height 
)

Draws an ellipse defined by a bounding rectangle.

◆ DrawEllipse() [2/15]

void PdfSharp.Drawing.XGraphics.DrawEllipse ( XBrush  brush,
int  x,
int  y,
int  width,
int  height 
)

Draws an ellipse defined by a bounding rectangle.

◆ DrawEllipse() [3/15]

void PdfSharp.Drawing.XGraphics.DrawEllipse ( XBrush  brush,
Rectangle  rect 
)

Draws an ellipse defined by a bounding rectangle.

◆ DrawEllipse() [4/15]

void PdfSharp.Drawing.XGraphics.DrawEllipse ( XBrush  brush,
RectangleF  rect 
)

Draws an ellipse defined by a bounding rectangle.

◆ DrawEllipse() [5/15]

void PdfSharp.Drawing.XGraphics.DrawEllipse ( XBrush  brush,
XRect  rect 
)

Draws an ellipse defined by a bounding rectangle.

◆ DrawEllipse() [6/15]

void PdfSharp.Drawing.XGraphics.DrawEllipse ( XPen  pen,
double  x,
double  y,
double  width,
double  height 
)

Draws an ellipse defined by a bounding rectangle.

◆ DrawEllipse() [7/15]

void PdfSharp.Drawing.XGraphics.DrawEllipse ( XPen  pen,
int  x,
int  y,
int  width,
int  height 
)

Draws an ellipse defined by a bounding rectangle.

◆ DrawEllipse() [8/15]

void PdfSharp.Drawing.XGraphics.DrawEllipse ( XPen  pen,
Rectangle  rect 
)

Draws an ellipse defined by a bounding rectangle.

◆ DrawEllipse() [9/15]

void PdfSharp.Drawing.XGraphics.DrawEllipse ( XPen  pen,
RectangleF  rect 
)

Draws an ellipse defined by a bounding rectangle.

◆ DrawEllipse() [10/15]

void PdfSharp.Drawing.XGraphics.DrawEllipse ( XPen  pen,
XBrush  brush,
double  x,
double  y,
double  width,
double  height 
)

Draws an ellipse defined by a bounding rectangle.

◆ DrawEllipse() [11/15]

void PdfSharp.Drawing.XGraphics.DrawEllipse ( XPen  pen,
XBrush  brush,
int  x,
int  y,
int  width,
int  height 
)

Draws an ellipse defined by a bounding rectangle.

◆ DrawEllipse() [12/15]

void PdfSharp.Drawing.XGraphics.DrawEllipse ( XPen  pen,
XBrush  brush,
Rectangle  rect 
)

Draws an ellipse defined by a bounding rectangle.

◆ DrawEllipse() [13/15]

void PdfSharp.Drawing.XGraphics.DrawEllipse ( XPen  pen,
XBrush  brush,
RectangleF  rect 
)

Draws an ellipse defined by a bounding rectangle.

◆ DrawEllipse() [14/15]

void PdfSharp.Drawing.XGraphics.DrawEllipse ( XPen  pen,
XBrush  brush,
XRect  rect 
)

Draws an ellipse defined by a bounding rectangle.

◆ DrawEllipse() [15/15]

void PdfSharp.Drawing.XGraphics.DrawEllipse ( XPen  pen,
XRect  rect 
)

Draws an ellipse defined by a bounding rectangle.

◆ DrawImage() [1/13]

void PdfSharp.Drawing.XGraphics.DrawImage ( XImage  image,
double  x,
double  y 
)

Draws the specified image.

◆ DrawImage() [2/13]

void PdfSharp.Drawing.XGraphics.DrawImage ( XImage  image,
double  x,
double  y,
double  width,
double  height 
)

Draws the specified image.

◆ DrawImage() [3/13]

void PdfSharp.Drawing.XGraphics.DrawImage ( XImage  image,
int  x,
int  y 
)

Draws the specified image.

◆ DrawImage() [4/13]

void PdfSharp.Drawing.XGraphics.DrawImage ( XImage  image,
int  x,
int  y,
int  width,
int  height 
)

Draws the specified image.

◆ DrawImage() [5/13]

void PdfSharp.Drawing.XGraphics.DrawImage ( XImage  image,
PointF  point 
)

Draws the specified image.

◆ DrawImage() [6/13]

void PdfSharp.Drawing.XGraphics.DrawImage ( XImage  image,
Rectangle  destRect,
Rectangle  srcRect,
XGraphicsUnit  srcUnit 
)

Draws the specified image.

◆ DrawImage() [7/13]

void PdfSharp.Drawing.XGraphics.DrawImage ( XImage  image,
Rectangle  rect 
)

Draws the specified image.

◆ DrawImage() [8/13]

void PdfSharp.Drawing.XGraphics.DrawImage ( XImage  image,
RectangleF  destRect,
RectangleF  srcRect,
XGraphicsUnit  srcUnit 
)

Draws the specified image.

◆ DrawImage() [9/13]

void PdfSharp.Drawing.XGraphics.DrawImage ( XImage  image,
RectangleF  rect 
)

Draws the specified image.

◆ DrawImage() [10/13]

void PdfSharp.Drawing.XGraphics.DrawImage ( XImage  image,
System.Drawing.Point  point 
)

Draws the specified image.

◆ DrawImage() [11/13]

void PdfSharp.Drawing.XGraphics.DrawImage ( XImage  image,
XPoint  point 
)

Draws the specified image.

◆ DrawImage() [12/13]

void PdfSharp.Drawing.XGraphics.DrawImage ( XImage  image,
XRect  destRect,
XRect  srcRect,
XGraphicsUnit  srcUnit 
)

Draws the specified image.

◆ DrawImage() [13/13]

void PdfSharp.Drawing.XGraphics.DrawImage ( XImage  image,
XRect  rect 
)

Draws the specified image.

◆ DrawLine() [1/5]

void PdfSharp.Drawing.XGraphics.DrawLine ( XPen  pen,
double  x1,
double  y1,
double  x2,
double  y2 
)

Draws a line connecting the two points specified by coordinate pairs.

◆ DrawLine() [2/5]

void PdfSharp.Drawing.XGraphics.DrawLine ( XPen  pen,
int  x1,
int  y1,
int  x2,
int  y2 
)

Draws a line connecting the two points specified by coordinate pairs.

◆ DrawLine() [3/5]

void PdfSharp.Drawing.XGraphics.DrawLine ( XPen  pen,
PointF  pt1,
PointF  pt2 
)

Draws a line connecting two PointF structures.

◆ DrawLine() [4/5]

void PdfSharp.Drawing.XGraphics.DrawLine ( XPen  pen,
System.Drawing.Point  pt1,
System.Drawing.Point  pt2 
)

Draws a line connecting two Point structures.

◆ DrawLine() [5/5]

void PdfSharp.Drawing.XGraphics.DrawLine ( XPen  pen,
XPoint  pt1,
XPoint  pt2 
)

Draws a line connecting two XPoint structures.

◆ DrawLines() [1/4]

void PdfSharp.Drawing.XGraphics.DrawLines ( XPen  pen,
double  x,
double  y,
params double[]  value 
)

Draws a series of line segments that connect an array of x and y pairs.

◆ DrawLines() [2/4]

void PdfSharp.Drawing.XGraphics.DrawLines ( XPen  pen,
PointF[]  points 
)

Draws a series of line segments that connect an array of points.

◆ DrawLines() [3/4]

void PdfSharp.Drawing.XGraphics.DrawLines ( XPen  pen,
System.Drawing.Point[]  points 
)

Draws a series of line segments that connect an array of points.

◆ DrawLines() [4/4]

void PdfSharp.Drawing.XGraphics.DrawLines ( XPen  pen,
XPoint[]  points 
)

Draws a series of line segments that connect an array of points.

◆ DrawMatrixCode() [1/2]

void PdfSharp.Drawing.XGraphics.DrawMatrixCode ( BarCodes.MatrixCode  matrixcode,
XBrush  brush,
XPoint  position 
)

Draws the specified data matrix code.

◆ DrawMatrixCode() [2/2]

void PdfSharp.Drawing.XGraphics.DrawMatrixCode ( BarCodes.MatrixCode  matrixcode,
XPoint  position 
)

Draws the specified data matrix code.

◆ DrawPath() [1/3]

void PdfSharp.Drawing.XGraphics.DrawPath ( XBrush  brush,
XGraphicsPath  path 
)

Draws a graphical path.

◆ DrawPath() [2/3]

void PdfSharp.Drawing.XGraphics.DrawPath ( XPen  pen,
XBrush  brush,
XGraphicsPath  path 
)

Draws a graphical path.

◆ DrawPath() [3/3]

void PdfSharp.Drawing.XGraphics.DrawPath ( XPen  pen,
XGraphicsPath  path 
)

Draws a graphical path.

◆ DrawPie() [1/15]

void PdfSharp.Drawing.XGraphics.DrawPie ( XBrush  brush,
double  x,
double  y,
double  width,
double  height,
double  startAngle,
double  sweepAngle 
)

Draws a pie defined by an ellipse.

◆ DrawPie() [2/15]

void PdfSharp.Drawing.XGraphics.DrawPie ( XBrush  brush,
int  x,
int  y,
int  width,
int  height,
int  startAngle,
int  sweepAngle 
)

Draws a pie defined by an ellipse.

◆ DrawPie() [3/15]

void PdfSharp.Drawing.XGraphics.DrawPie ( XBrush  brush,
Rectangle  rect,
double  startAngle,
double  sweepAngle 
)

Draws a pie defined by an ellipse.

◆ DrawPie() [4/15]

void PdfSharp.Drawing.XGraphics.DrawPie ( XBrush  brush,
RectangleF  rect,
double  startAngle,
double  sweepAngle 
)

Draws a pie defined by an ellipse.

◆ DrawPie() [5/15]

void PdfSharp.Drawing.XGraphics.DrawPie ( XBrush  brush,
XRect  rect,
double  startAngle,
double  sweepAngle 
)

Draws a pie defined by an ellipse.

◆ DrawPie() [6/15]

void PdfSharp.Drawing.XGraphics.DrawPie ( XPen  pen,
double  x,
double  y,
double  width,
double  height,
double  startAngle,
double  sweepAngle 
)

Draws a pie defined by an ellipse.

◆ DrawPie() [7/15]

void PdfSharp.Drawing.XGraphics.DrawPie ( XPen  pen,
int  x,
int  y,
int  width,
int  height,
int  startAngle,
int  sweepAngle 
)

Draws a pie defined by an ellipse.

◆ DrawPie() [8/15]

void PdfSharp.Drawing.XGraphics.DrawPie ( XPen  pen,
Rectangle  rect,
double  startAngle,
double  sweepAngle 
)

Draws a pie defined by an ellipse.

◆ DrawPie() [9/15]

void PdfSharp.Drawing.XGraphics.DrawPie ( XPen  pen,
RectangleF  rect,
double  startAngle,
double  sweepAngle 
)

Draws a pie defined by an ellipse.

◆ DrawPie() [10/15]

void PdfSharp.Drawing.XGraphics.DrawPie ( XPen  pen,
XBrush  brush,
double  x,
double  y,
double  width,
double  height,
double  startAngle,
double  sweepAngle 
)

Draws a pie defined by an ellipse.

◆ DrawPie() [11/15]

void PdfSharp.Drawing.XGraphics.DrawPie ( XPen  pen,
XBrush  brush,
int  x,
int  y,
int  width,
int  height,
int  startAngle,
int  sweepAngle 
)

Draws a pie defined by an ellipse.

◆ DrawPie() [12/15]

void PdfSharp.Drawing.XGraphics.DrawPie ( XPen  pen,
XBrush  brush,
Rectangle  rect,
double  startAngle,
double  sweepAngle 
)

Draws a pie defined by an ellipse.

◆ DrawPie() [13/15]

void PdfSharp.Drawing.XGraphics.DrawPie ( XPen  pen,
XBrush  brush,
RectangleF  rect,
double  startAngle,
double  sweepAngle 
)

Draws a pie defined by an ellipse.

◆ DrawPie() [14/15]

void PdfSharp.Drawing.XGraphics.DrawPie ( XPen  pen,
XBrush  brush,
XRect  rect,
double  startAngle,
double  sweepAngle 
)

Draws a pie defined by an ellipse.

◆ DrawPie() [15/15]

void PdfSharp.Drawing.XGraphics.DrawPie ( XPen  pen,
XRect  rect,
double  startAngle,
double  sweepAngle 
)

Draws a pie defined by an ellipse.

◆ DrawPolygon() [1/9]

void PdfSharp.Drawing.XGraphics.DrawPolygon ( XBrush  brush,
PointF[]  points,
XFillMode  fillmode 
)

Draws a polygon defined by an array of points.

◆ DrawPolygon() [2/9]

void PdfSharp.Drawing.XGraphics.DrawPolygon ( XBrush  brush,
System.Drawing.Point[]  points,
XFillMode  fillmode 
)

Draws a polygon defined by an array of points.

◆ DrawPolygon() [3/9]

void PdfSharp.Drawing.XGraphics.DrawPolygon ( XBrush  brush,
XPoint[]  points,
XFillMode  fillmode 
)

Draws a polygon defined by an array of points.

◆ DrawPolygon() [4/9]

void PdfSharp.Drawing.XGraphics.DrawPolygon ( XPen  pen,
PointF[]  points 
)

Draws a polygon defined by an array of points.

◆ DrawPolygon() [5/9]

void PdfSharp.Drawing.XGraphics.DrawPolygon ( XPen  pen,
System.Drawing.Point[]  points 
)

Draws a polygon defined by an array of points.

◆ DrawPolygon() [6/9]

void PdfSharp.Drawing.XGraphics.DrawPolygon ( XPen  pen,
XBrush  brush,
PointF[]  points,
XFillMode  fillmode 
)

Draws a polygon defined by an array of points.

◆ DrawPolygon() [7/9]

void PdfSharp.Drawing.XGraphics.DrawPolygon ( XPen  pen,
XBrush  brush,
System.Drawing.Point[]  points,
XFillMode  fillmode 
)

Draws a polygon defined by an array of points.

◆ DrawPolygon() [8/9]

void PdfSharp.Drawing.XGraphics.DrawPolygon ( XPen  pen,
XBrush  brush,
XPoint[]  points,
XFillMode  fillmode 
)

Draws a polygon defined by an array of points.

◆ DrawPolygon() [9/9]

void PdfSharp.Drawing.XGraphics.DrawPolygon ( XPen  pen,
XPoint[]  points 
)

Draws a polygon defined by an array of points.

◆ DrawRectangle() [1/15]

void PdfSharp.Drawing.XGraphics.DrawRectangle ( XBrush  brush,
double  x,
double  y,
double  width,
double  height 
)

Draws a rectangle.

◆ DrawRectangle() [2/15]

void PdfSharp.Drawing.XGraphics.DrawRectangle ( XBrush  brush,
int  x,
int  y,
int  width,
int  height 
)

Draws a rectangle.

◆ DrawRectangle() [3/15]

void PdfSharp.Drawing.XGraphics.DrawRectangle ( XBrush  brush,
Rectangle  rect 
)

Draws a rectangle.

◆ DrawRectangle() [4/15]

void PdfSharp.Drawing.XGraphics.DrawRectangle ( XBrush  brush,
RectangleF  rect 
)

Draws a rectangle.

◆ DrawRectangle() [5/15]

void PdfSharp.Drawing.XGraphics.DrawRectangle ( XBrush  brush,
XRect  rect 
)

Draws a rectangle.

◆ DrawRectangle() [6/15]

void PdfSharp.Drawing.XGraphics.DrawRectangle ( XPen  pen,
double  x,
double  y,
double  width,
double  height 
)

Draws a rectangle.

◆ DrawRectangle() [7/15]

void PdfSharp.Drawing.XGraphics.DrawRectangle ( XPen  pen,
int  x,
int  y,
int  width,
int  height 
)

Draws a rectangle.

◆ DrawRectangle() [8/15]

void PdfSharp.Drawing.XGraphics.DrawRectangle ( XPen  pen,
Rectangle  rect 
)

Draws a rectangle.

◆ DrawRectangle() [9/15]

void PdfSharp.Drawing.XGraphics.DrawRectangle ( XPen  pen,
RectangleF  rect 
)

Draws a rectangle.

◆ DrawRectangle() [10/15]

void PdfSharp.Drawing.XGraphics.DrawRectangle ( XPen  pen,
XBrush  brush,
double  x,
double  y,
double  width,
double  height 
)

Draws a rectangle.

◆ DrawRectangle() [11/15]

void PdfSharp.Drawing.XGraphics.DrawRectangle ( XPen  pen,
XBrush  brush,
int  x,
int  y,
int  width,
int  height 
)

Draws a rectangle.

◆ DrawRectangle() [12/15]

void PdfSharp.Drawing.XGraphics.DrawRectangle ( XPen  pen,
XBrush  brush,
Rectangle  rect 
)

Draws a rectangle.

◆ DrawRectangle() [13/15]

void PdfSharp.Drawing.XGraphics.DrawRectangle ( XPen  pen,
XBrush  brush,
RectangleF  rect 
)

Draws a rectangle.

◆ DrawRectangle() [14/15]

void PdfSharp.Drawing.XGraphics.DrawRectangle ( XPen  pen,
XBrush  brush,
XRect  rect 
)

Draws a rectangle.

◆ DrawRectangle() [15/15]

void PdfSharp.Drawing.XGraphics.DrawRectangle ( XPen  pen,
XRect  rect 
)

Draws a rectangle.

◆ DrawRectangles() [1/9]

void PdfSharp.Drawing.XGraphics.DrawRectangles ( XBrush  brush,
Rectangle[]  rectangles 
)

Draws a series of rectangles.

◆ DrawRectangles() [2/9]

void PdfSharp.Drawing.XGraphics.DrawRectangles ( XBrush  brush,
RectangleF[]  rectangles 
)

Draws a series of rectangles.

◆ DrawRectangles() [3/9]

void PdfSharp.Drawing.XGraphics.DrawRectangles ( XBrush  brush,
XRect[]  rectangles 
)

Draws a series of rectangles.

◆ DrawRectangles() [4/9]

void PdfSharp.Drawing.XGraphics.DrawRectangles ( XPen  pen,
Rectangle[]  rectangles 
)

Draws a series of rectangles.

◆ DrawRectangles() [5/9]

void PdfSharp.Drawing.XGraphics.DrawRectangles ( XPen  pen,
RectangleF[]  rectangles 
)

Draws a series of rectangles.

◆ DrawRectangles() [6/9]

void PdfSharp.Drawing.XGraphics.DrawRectangles ( XPen  pen,
XBrush  brush,
Rectangle[]  rectangles 
)

Draws a series of rectangles.

◆ DrawRectangles() [7/9]

void PdfSharp.Drawing.XGraphics.DrawRectangles ( XPen  pen,
XBrush  brush,
RectangleF[]  rectangles 
)

Draws a series of rectangles.

◆ DrawRectangles() [8/9]

void PdfSharp.Drawing.XGraphics.DrawRectangles ( XPen  pen,
XBrush  brush,
XRect[]  rectangles 
)

Draws a series of rectangles.

◆ DrawRectangles() [9/9]

void PdfSharp.Drawing.XGraphics.DrawRectangles ( XPen  pen,
XRect[]  rectangles 
)

Draws a series of rectangles.

◆ DrawRoundedRectangle() [1/15]

void PdfSharp.Drawing.XGraphics.DrawRoundedRectangle ( XBrush  brush,
double  x,
double  y,
double  width,
double  height,
double  ellipseWidth,
double  ellipseHeight 
)

Draws a rectangles with round corners.

◆ DrawRoundedRectangle() [2/15]

void PdfSharp.Drawing.XGraphics.DrawRoundedRectangle ( XBrush  brush,
int  x,
int  y,
int  width,
int  height,
int  ellipseWidth,
int  ellipseHeight 
)

Draws a rectangles with round corners.

◆ DrawRoundedRectangle() [3/15]

void PdfSharp.Drawing.XGraphics.DrawRoundedRectangle ( XBrush  brush,
Rectangle  rect,
System.Drawing.Size  ellipseSize 
)

Draws a rectangles with round corners.

◆ DrawRoundedRectangle() [4/15]

void PdfSharp.Drawing.XGraphics.DrawRoundedRectangle ( XBrush  brush,
RectangleF  rect,
SizeF  ellipseSize 
)

Draws a rectangles with round corners.

◆ DrawRoundedRectangle() [5/15]

void PdfSharp.Drawing.XGraphics.DrawRoundedRectangle ( XBrush  brush,
XRect  rect,
XSize  ellipseSize 
)

Draws a rectangles with round corners.

◆ DrawRoundedRectangle() [6/15]

void PdfSharp.Drawing.XGraphics.DrawRoundedRectangle ( XPen  pen,
double  x,
double  y,
double  width,
double  height,
double  ellipseWidth,
double  ellipseHeight 
)

Draws a rectangles with round corners.

◆ DrawRoundedRectangle() [7/15]

void PdfSharp.Drawing.XGraphics.DrawRoundedRectangle ( XPen  pen,
int  x,
int  y,
int  width,
int  height,
int  ellipseWidth,
int  ellipseHeight 
)

Draws a rectangles with round corners.

◆ DrawRoundedRectangle() [8/15]

void PdfSharp.Drawing.XGraphics.DrawRoundedRectangle ( XPen  pen,
Rectangle  rect,
System.Drawing.Size  ellipseSize 
)

Draws a rectangles with round corners.

◆ DrawRoundedRectangle() [9/15]

void PdfSharp.Drawing.XGraphics.DrawRoundedRectangle ( XPen  pen,
RectangleF  rect,
SizeF  ellipseSize 
)

Draws a rectangles with round corners.

◆ DrawRoundedRectangle() [10/15]

void PdfSharp.Drawing.XGraphics.DrawRoundedRectangle ( XPen  pen,
XBrush  brush,
double  x,
double  y,
double  width,
double  height,
double  ellipseWidth,
double  ellipseHeight 
)

Draws a rectangles with round corners.

◆ DrawRoundedRectangle() [11/15]

void PdfSharp.Drawing.XGraphics.DrawRoundedRectangle ( XPen  pen,
XBrush  brush,
int  x,
int  y,
int  width,
int  height,
int  ellipseWidth,
int  ellipseHeight 
)

Draws a rectangles with round corners.

◆ DrawRoundedRectangle() [12/15]

void PdfSharp.Drawing.XGraphics.DrawRoundedRectangle ( XPen  pen,
XBrush  brush,
Rectangle  rect,
System.Drawing.Size  ellipseSize 
)

Draws a rectangles with round corners.

◆ DrawRoundedRectangle() [13/15]

void PdfSharp.Drawing.XGraphics.DrawRoundedRectangle ( XPen  pen,
XBrush  brush,
RectangleF  rect,
SizeF  ellipseSize 
)

Draws a rectangles with round corners.

◆ DrawRoundedRectangle() [14/15]

void PdfSharp.Drawing.XGraphics.DrawRoundedRectangle ( XPen  pen,
XBrush  brush,
XRect  rect,
XSize  ellipseSize 
)

Draws a rectangles with round corners.

◆ DrawRoundedRectangle() [15/15]

void PdfSharp.Drawing.XGraphics.DrawRoundedRectangle ( XPen  pen,
XRect  rect,
XSize  ellipseSize 
)

Draws a rectangles with round corners.

◆ DrawString() [1/10]

void PdfSharp.Drawing.XGraphics.DrawString ( string  s,
XFont  font,
XBrush  brush,
double  x,
double  y 
)

Draws the specified text string.

◆ DrawString() [2/10]

void PdfSharp.Drawing.XGraphics.DrawString ( string  s,
XFont  font,
XBrush  brush,
double  x,
double  y,
XStringFormat  format 
)

Draws the specified text string.

◆ DrawString() [3/10]

void PdfSharp.Drawing.XGraphics.DrawString ( string  s,
XFont  font,
XBrush  brush,
PointF  point 
)

Draws the specified text string.

◆ DrawString() [4/10]

void PdfSharp.Drawing.XGraphics.DrawString ( string  s,
XFont  font,
XBrush  brush,
PointF  point,
XStringFormat  format 
)

Draws the specified text string.

◆ DrawString() [5/10]

void PdfSharp.Drawing.XGraphics.DrawString ( string  s,
XFont  font,
XBrush  brush,
RectangleF  layoutRectangle 
)

Draws the specified text string.

◆ DrawString() [6/10]

void PdfSharp.Drawing.XGraphics.DrawString ( string  s,
XFont  font,
XBrush  brush,
RectangleF  layoutRectangle,
XStringFormat  format 
)

Draws the specified text string.

◆ DrawString() [7/10]

void PdfSharp.Drawing.XGraphics.DrawString ( string  s,
XFont  font,
XBrush  brush,
XPoint  point 
)

Draws the specified text string.

◆ DrawString() [8/10]

void PdfSharp.Drawing.XGraphics.DrawString ( string  s,
XFont  font,
XBrush  brush,
XPoint  point,
XStringFormat  format 
)

Draws the specified text string.

◆ DrawString() [9/10]

void PdfSharp.Drawing.XGraphics.DrawString ( string  s,
XFont  font,
XBrush  brush,
XRect  layoutRectangle 
)

Draws the specified text string.

◆ DrawString() [10/10]

void PdfSharp.Drawing.XGraphics.DrawString ( string  text,
XFont  font,
XBrush  brush,
XRect  layoutRectangle,
XStringFormat  format 
)

Draws the specified text string.

◆ EndContainer()

void PdfSharp.Drawing.XGraphics.EndContainer ( XGraphicsContainer  container)

Closes the current graphics container and restores the state of this XGraphics to the state saved by a call to the BeginContainer method.

◆ FromForm()

static XGraphics PdfSharp.Drawing.XGraphics.FromForm ( XForm  form)
static

Creates a new instance of the XGraphics class from a PdfSharp.Drawing.XForm object.

◆ FromGraphics() [1/2]

static XGraphics PdfSharp.Drawing.XGraphics.FromGraphics ( Graphics  graphics,
XSize  size 
)
static

Creates a new instance of the XGraphics class from a System.Drawing.Graphics object.

◆ FromGraphics() [2/2]

static XGraphics PdfSharp.Drawing.XGraphics.FromGraphics ( Graphics  graphics,
XSize  size,
XGraphicsUnit  unit 
)
static

Creates a new instance of the XGraphics class from a System.Drawing.Graphics object.

◆ FromPdfForm()

static XGraphics PdfSharp.Drawing.XGraphics.FromPdfForm ( XPdfForm  form)
static

Creates a new instance of the XGraphics class from a PdfSharp.Drawing.XPdfForm object.

◆ FromPdfPage() [1/7]

static XGraphics PdfSharp.Drawing.XGraphics.FromPdfPage ( PdfPage  page)
static

Creates a new instance of the XGraphics class from a PdfSharp.Pdf.PdfPage object.

◆ FromPdfPage() [2/7]

static XGraphics PdfSharp.Drawing.XGraphics.FromPdfPage ( PdfPage  page,
XGraphicsPdfPageOptions  options 
)
static

Creates a new instance of the XGraphics class from a PdfSharp.Pdf.PdfPage object.

◆ FromPdfPage() [3/7]

static XGraphics PdfSharp.Drawing.XGraphics.FromPdfPage ( PdfPage  page,
XGraphicsPdfPageOptions  options,
XGraphicsUnit  unit 
)
static

Creates a new instance of the XGraphics class from a PdfSharp.Pdf.PdfPage object.

◆ FromPdfPage() [4/7]

static XGraphics PdfSharp.Drawing.XGraphics.FromPdfPage ( PdfPage  page,
XGraphicsPdfPageOptions  options,
XGraphicsUnit  unit,
XPageDirection  pageDirection 
)
static

Creates a new instance of the XGraphics class from a PdfSharp.Pdf.PdfPage object.

◆ FromPdfPage() [5/7]

static XGraphics PdfSharp.Drawing.XGraphics.FromPdfPage ( PdfPage  page,
XGraphicsPdfPageOptions  options,
XPageDirection  pageDirection 
)
static

Creates a new instance of the XGraphics class from a PdfSharp.Pdf.PdfPage object.

◆ FromPdfPage() [6/7]

static XGraphics PdfSharp.Drawing.XGraphics.FromPdfPage ( PdfPage  page,
XGraphicsUnit  unit 
)
static

Creates a new instance of the XGraphics class from a PdfSharp.Pdf.PdfPage object.

◆ FromPdfPage() [7/7]

static XGraphics PdfSharp.Drawing.XGraphics.FromPdfPage ( PdfPage  page,
XPageDirection  pageDirection 
)
static

Creates a new instance of the XGraphics class from a PdfSharp.Pdf.PdfPage object.

◆ IntersectClip() [1/4]

void PdfSharp.Drawing.XGraphics.IntersectClip ( Rectangle  rect)

Updates the clip region of this XGraphics to the intersection of the current clip region and the specified rectangle.

◆ IntersectClip() [2/4]

void PdfSharp.Drawing.XGraphics.IntersectClip ( RectangleF  rect)

Updates the clip region of this XGraphics to the intersection of the current clip region and the specified rectangle.

◆ IntersectClip() [3/4]

void PdfSharp.Drawing.XGraphics.IntersectClip ( XGraphicsPath  path)

Updates the clip region of this XGraphics to the intersection of the current clip region and the specified graphical path.

◆ IntersectClip() [4/4]

void PdfSharp.Drawing.XGraphics.IntersectClip ( XRect  rect)

Updates the clip region of this XGraphics to the intersection of the current clip region and the specified rectangle.

◆ MeasureString() [1/2]

XSize PdfSharp.Drawing.XGraphics.MeasureString ( string  text,
XFont  font 
)

Measures the specified string when drawn with the specified font.

◆ MeasureString() [2/2]

XSize PdfSharp.Drawing.XGraphics.MeasureString ( string  text,
XFont  font,
XStringFormat  stringFormat 
)

Measures the specified string when drawn with the specified font.

◆ MultiplyTransform() [1/2]

void PdfSharp.Drawing.XGraphics.MultiplyTransform ( XMatrix  matrix)

Multiplies the transformation matrix of this object and specified matrix.

◆ MultiplyTransform() [2/2]

void PdfSharp.Drawing.XGraphics.MultiplyTransform ( XMatrix  matrix,
XMatrixOrder  order 
)

Multiplies the transformation matrix of this object and specified matrix in the specified order.

◆ ResetClip()

void PdfSharp.Drawing.XGraphics.ResetClip ( )

Resets the clip region of this XGraphics to an infinite region, i.e. no clipping takes place.

◆ ResetTransform()

void PdfSharp.Drawing.XGraphics.ResetTransform ( )

Resets the transformation matrix of this object to the identity matrix.

◆ Restore() [1/2]

void PdfSharp.Drawing.XGraphics.Restore ( )

Restores the state of this XGraphics object to the state before the most recently call of Save.

◆ Restore() [2/2]

void PdfSharp.Drawing.XGraphics.Restore ( XGraphicsState  state)

Restores the state of this XGraphics object to the state represented by the specified XGraphicsState object.

◆ RotateAtTransform() [1/2]

void PdfSharp.Drawing.XGraphics.RotateAtTransform ( double  angle,
XPoint  point 
)

Applies the specified rotation operation to the transformation matrix of this object by prepending it to the object's transformation matrix.

◆ RotateAtTransform() [2/2]

void PdfSharp.Drawing.XGraphics.RotateAtTransform ( double  angle,
XPoint  point,
XMatrixOrder  order 
)

Applies the specified rotation operation to the transformation matrix of this object by prepending it to the object's transformation matrix.

◆ RotateTransform() [1/2]

void PdfSharp.Drawing.XGraphics.RotateTransform ( double  angle)

Applies the specified rotation operation to the transformation matrix of this object by prepending it to the object's transformation matrix.

◆ RotateTransform() [2/2]

void PdfSharp.Drawing.XGraphics.RotateTransform ( double  angle,
XMatrixOrder  order 
)

Applies the specified rotation operation to the transformation matrix of this object in the specified order. The angle unit of measure is degree.

◆ Save()

XGraphicsState PdfSharp.Drawing.XGraphics.Save ( )

Saves the current state of this XGraphics object and identifies the saved state with the returned XGraphicsState object.

◆ ScaleTransform() [1/4]

void PdfSharp.Drawing.XGraphics.ScaleTransform ( double  scaleX,
double  scaleY 
)

Applies the specified scaling operation to the transformation matrix of this object by prepending it to the object's transformation matrix.

◆ ScaleTransform() [2/4]

void PdfSharp.Drawing.XGraphics.ScaleTransform ( double  scaleX,
double  scaleY,
XMatrixOrder  order 
)

Applies the specified scaling operation to the transformation matrix of this object in the specified order.

◆ ScaleTransform() [3/4]

void PdfSharp.Drawing.XGraphics.ScaleTransform ( double  scaleXY)

Applies the specified scaling operation to the transformation matrix of this object by prepending it to the object's transformation matrix.

◆ ScaleTransform() [4/4]

void PdfSharp.Drawing.XGraphics.ScaleTransform ( double  scaleXY,
XMatrixOrder  order 
)

Applies the specified scaling operation to the transformation matrix of this object in the specified order.

◆ SetClip() [1/6]

void PdfSharp.Drawing.XGraphics.SetClip ( Rectangle  rect)

Sets the clipping region to the specified rectangle.

◆ SetClip() [2/6]

void PdfSharp.Drawing.XGraphics.SetClip ( RectangleF  rect)

Sets the clipping region to the specified rectangle.

◆ SetClip() [3/6]

void PdfSharp.Drawing.XGraphics.SetClip ( XGraphicsPath  path)

Sets the clipping region to the specified graphical path.

◆ SetClip() [4/6]

void PdfSharp.Drawing.XGraphics.SetClip ( XGraphicsPath  path,
XCombineMode  combineMode 
)

Sets the clipping region to the specified graphical path.

◆ SetClip() [5/6]

void PdfSharp.Drawing.XGraphics.SetClip ( XRect  rect)

Sets the clipping region to the specified rectangle.

◆ SetClip() [6/6]

void PdfSharp.Drawing.XGraphics.SetClip ( XRect  rect,
XCombineMode  combineMode 
)

Sets the clipping region to the specified graphical path.

◆ ShearTransform() [1/2]

void PdfSharp.Drawing.XGraphics.ShearTransform ( double  shearX,
double  shearY 
)

Applies the specified shearing operation to the transformation matrix of this object by prepending it to the object's transformation matrix.

◆ ShearTransform() [2/2]

void PdfSharp.Drawing.XGraphics.ShearTransform ( double  shearX,
double  shearY,
XMatrixOrder  order 
)

Applies the specified shearing operation to the transformation matrix of this object in the specified order.

◆ TranslateTransform() [1/2]

void PdfSharp.Drawing.XGraphics.TranslateTransform ( double  dx,
double  dy 
)

Applies the specified translation operation to the transformation matrix of this object by prepending it to the object's transformation matrix.

◆ TranslateTransform() [2/2]

void PdfSharp.Drawing.XGraphics.TranslateTransform ( double  dx,
double  dy,
XMatrixOrder  order 
)

Applies the specified translation operation to the transformation matrix of this object in the specified order.

◆ WriteComment()

void PdfSharp.Drawing.XGraphics.WriteComment ( string  comment)

Writes a comment to the output stream. Comments have no effect on the rendering of the output. They may be useful to mark a position in a content stream of a PDF document.

Property Documentation

◆ Graphics

Graphics PdfSharp.Drawing.XGraphics.Graphics
get

Gets the System.Drawing.Graphics objects that serves as drawing surface if no PDF is rendered, or null, if no such object exists.

◆ GraphicsStateLevel

int PdfSharp.Drawing.XGraphics.GraphicsStateLevel
get

Gets the current graphics state level. The default value is 0. Each call of Save or BeginContainer increased and each call of Restore or EndContainer decreased the value by 1.

◆ Internals

XGraphicsInternals PdfSharp.Drawing.XGraphics.Internals
get

Permits access to internal data.

◆ MFEH

PdfFontEmbedding PdfSharp.Drawing.XGraphics.MFEH
getset

Internal hack for MigraDoc. Will be removed in further releases. Font embedding support requires a global refactoring of MigraDoc and will be done in further releases.

◆ MUH

PdfFontEncoding PdfSharp.Drawing.XGraphics.MUH
getset

Internal hack for MigraDoc. Will be removed in further releases. Unicode support requires a global refactoring of MigraDoc and will be done in further releases.

◆ PageDirection

XPageDirection PdfSharp.Drawing.XGraphics.PageDirection
getset

Gets or sets the a value indicating in which direction y-value grow.

◆ PageOrigin

XPoint PdfSharp.Drawing.XGraphics.PageOrigin
getset

Gets the current page origin. Setting the origin is not yet implemented.

◆ PageSize

XSize PdfSharp.Drawing.XGraphics.PageSize
get

Gets the current size of the page.

◆ PageUnit

XGraphicsUnit PdfSharp.Drawing.XGraphics.PageUnit
get

Gets or sets the unit of measure used for page coordinates. CURRENTLY ONLY POINT IS IMPLEMENTED.

◆ PdfPage

PdfPage? PdfSharp.Drawing.XGraphics.PdfPage
get

Gets the PDF page that serves as drawing surface if PDF is rendered, otherwise null.

◆ SmoothingMode

XSmoothingMode PdfSharp.Drawing.XGraphics.SmoothingMode
getset

Gets or sets the smoothing mode.

The smoothing mode.

◆ Transform

XMatrix PdfSharp.Drawing.XGraphics.Transform
getset

Gets or sets the transformation matrix.

◆ Transformer

SpaceTransformer PdfSharp.Drawing.XGraphics.Transformer
get

(Under construction. May change in future versions.)


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