PDFsharp-net6

XGraphics

Namespace: PdfSharp.Drawing

Represents a drawing surface for a fixed size page.

public sealed class XGraphics : System.IDisposable

Inheritance ObjectXGraphics
Implements IDisposable

Properties

PageUnit

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

public XGraphicsUnit PageUnit { get; }

Property Value

XGraphicsUnit

PageDirection

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

public XPageDirection PageDirection { get; set; }

Property Value

XPageDirection

PageOrigin

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

public XPoint PageOrigin { get; set; }

Property Value

XPoint

PageSize

Gets the current size of the page.

public XSize PageSize { get; }

Property Value

XSize

GraphicsStateLevel

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.

public int GraphicsStateLevel { get; }

Property Value

Int32

SmoothingMode

Gets or sets the smoothing mode.

public XSmoothingMode SmoothingMode { get; set; }

Property Value

XSmoothingMode
The smoothing mode.

Transform

Gets the current transformation matrix. The transformation matrix cannot be set. Instead use Save/Restore or BeginContainer/EndContainer to save the state before Transform is called and later restore to the previous transform.

public XMatrix Transform { get; }

Property Value

XMatrix

Internals

Permits access to internal data.

public XGraphicsInternals Internals { get; }

Property Value

XGraphicsInternals

Transformer

(Under construction. May change in future versions.)

public SpaceTransformer Transformer { get; }

Property Value

SpaceTransformer

PdfPage

Gets the PDF page that serves as drawing surface if PDF is rendered, or null if no such object exists.

public PdfPage PdfPage { get; }

Property Value

PdfPage

Methods

DrawImage(XImage, Double, Double)

Draws the specified image.

public void DrawImage(XImage image, double x, double y)

Parameters

image XImage

x Double

y Double

DrawImage(XImage, XRect)

Draws the specified image.

public void DrawImage(XImage image, XRect rect)

Parameters

image XImage

rect XRect

DrawImage(XImage, Double, Double, Double, Double)

Draws the specified image.

public void DrawImage(XImage image, double x, double y, double width, double height)

Parameters

image XImage

x Double

y Double

width Double

height Double

DrawImage(XImage, XRect, XRect, XGraphicsUnit)

Draws the specified image.

public void DrawImage(XImage image, XRect destRect, XRect srcRect, XGraphicsUnit srcUnit)

Parameters

image XImage

destRect XRect

srcRect XRect

srcUnit XGraphicsUnit

DrawBarCode(BarCode, XPoint)

Draws the specified bar code.

public void DrawBarCode(BarCode barcode, XPoint position)

Parameters

barcode BarCode

position XPoint

DrawBarCode(BarCode, XBrush, XPoint)

Draws the specified bar code.

public void DrawBarCode(BarCode barcode, XBrush brush, XPoint position)

Parameters

barcode BarCode

brush XBrush

position XPoint

DrawBarCode(BarCode, XBrush, XFont, XPoint)

Draws the specified bar code.

public void DrawBarCode(BarCode barcode, XBrush brush, XFont font, XPoint position)

Parameters

barcode BarCode

brush XBrush

font XFont

position XPoint

DrawMatrixCode(MatrixCode, XPoint)

Draws the specified data matrix code.

public void DrawMatrixCode(MatrixCode matrixcode, XPoint position)

Parameters

matrixcode MatrixCode

position XPoint

DrawMatrixCode(MatrixCode, XBrush, XPoint)

Draws the specified data matrix code.

public void DrawMatrixCode(MatrixCode matrixcode, XBrush brush, XPoint position)

Parameters

matrixcode MatrixCode

brush XBrush

position XPoint

Save()

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

public XGraphicsState Save()

Returns

XGraphicsState

Restore(XGraphicsState)

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

public void Restore(XGraphicsState state)

Parameters

state XGraphicsState

Restore()

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

public void Restore()

BeginContainer()

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

public XGraphicsContainer BeginContainer()

Returns

XGraphicsContainer

BeginContainer(XRect, XRect, XGraphicsUnit)

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

public XGraphicsContainer BeginContainer(XRect dstrect, XRect srcrect, XGraphicsUnit unit)

Parameters

dstrect XRect

srcrect XRect

unit XGraphicsUnit

Returns

XGraphicsContainer

EndContainer(XGraphicsContainer)

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

public void EndContainer(XGraphicsContainer container)

Parameters

container XGraphicsContainer

TranslateTransform(Double, Double)

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

public void TranslateTransform(double dx, double dy)

Parameters

dx Double

dy Double

TranslateTransform(Double, Double, XMatrixOrder)

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

public void TranslateTransform(double dx, double dy, XMatrixOrder order)

Parameters

dx Double

dy Double

order XMatrixOrder

ScaleTransform(Double, Double)

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

public void ScaleTransform(double scaleX, double scaleY)

Parameters

scaleX Double

scaleY Double

ScaleTransform(Double, Double, XMatrixOrder)

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

public void ScaleTransform(double scaleX, double scaleY, XMatrixOrder order)

Parameters

scaleX Double

scaleY Double

order XMatrixOrder

ScaleTransform(Double)

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

public void ScaleTransform(double scaleXY)

Parameters

scaleXY Double

ScaleTransform(Double, XMatrixOrder)

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

public void ScaleTransform(double scaleXY, XMatrixOrder order)

Parameters

scaleXY Double

order XMatrixOrder

ScaleAtTransform(Double, Double, Double, Double)

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

public void ScaleAtTransform(double scaleX, double scaleY, double centerX, double centerY)

Parameters

scaleX Double

scaleY Double

centerX Double

centerY Double

ScaleAtTransform(Double, Double, XPoint)

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

public void ScaleAtTransform(double scaleX, double scaleY, XPoint center)

Parameters

scaleX Double

scaleY Double

center XPoint

RotateTransform(Double)

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

public void RotateTransform(double angle)

Parameters

angle Double

RotateTransform(Double, XMatrixOrder)

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

public void RotateTransform(double angle, XMatrixOrder order)

Parameters

angle Double

order XMatrixOrder

RotateAtTransform(Double, XPoint)

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

public void RotateAtTransform(double angle, XPoint point)

Parameters

angle Double

point XPoint

RotateAtTransform(Double, XPoint, XMatrixOrder)

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

public void RotateAtTransform(double angle, XPoint point, XMatrixOrder order)

Parameters

angle Double

point XPoint

order XMatrixOrder

ShearTransform(Double, Double)

Applies the specified shearing operation to the transformation matrix of this object by prepending it to the object’s transformation matrix. ShearTransform is a synonym for SkewAtTransform. Parameter shearX specifies the horizontal skew which is measured in degrees counterclockwise from the y-axis. Parameter shearY specifies the vertical skew which is measured in degrees counterclockwise from the x-axis.

public void ShearTransform(double shearX, double shearY)

Parameters

shearX Double

shearY Double

ShearTransform(Double, Double, XMatrixOrder)

Applies the specified shearing operation to the transformation matrix of this object in the specified order. ShearTransform is a synonym for SkewAtTransform. Parameter shearX specifies the horizontal skew which is measured in degrees counterclockwise from the y-axis. Parameter shearY specifies the vertical skew which is measured in degrees counterclockwise from the x-axis.

public void ShearTransform(double shearX, double shearY, XMatrixOrder order)

Parameters

shearX Double

shearY Double

order XMatrixOrder

SkewAtTransform(Double, Double, Double, Double)

Applies the specified shearing operation to the transformation matrix of this object by prepending it to the object’s transformation matrix. ShearTransform is a synonym for SkewAtTransform. Parameter shearX specifies the horizontal skew which is measured in degrees counterclockwise from the y-axis. Parameter shearY specifies the vertical skew which is measured in degrees counterclockwise from the x-axis.

public void SkewAtTransform(double shearX, double shearY, double centerX, double centerY)

Parameters

shearX Double

shearY Double

centerX Double

centerY Double

SkewAtTransform(Double, Double, XPoint)

Applies the specified shearing operation to the transformation matrix of this object by prepending it to the object’s transformation matrix. ShearTransform is a synonym for SkewAtTransform. Parameter shearX specifies the horizontal skew which is measured in degrees counterclockwise from the y-axis. Parameter shearY specifies the vertical skew which is measured in degrees counterclockwise from the x-axis.

public void SkewAtTransform(double shearX, double shearY, XPoint center)

Parameters

shearX Double

shearY Double

center XPoint

MultiplyTransform(XMatrix)

Multiplies the transformation matrix of this object and specified matrix.

public void MultiplyTransform(XMatrix matrix)

Parameters

matrix XMatrix

MultiplyTransform(XMatrix, XMatrixOrder)

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

public void MultiplyTransform(XMatrix matrix, XMatrixOrder order)

Parameters

matrix XMatrix

order XMatrixOrder

IntersectClip(XRect)

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

public void IntersectClip(XRect rect)

Parameters

rect XRect

IntersectClip(XGraphicsPath)

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

public void IntersectClip(XGraphicsPath path)

Parameters

path XGraphicsPath

WriteComment(String)

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 page in a PDF document.

public void WriteComment(string comment)

Parameters

comment String

DisassociateImage()

internal void DisassociateImage()

AppendToContentStream(String)

internal void AppendToContentStream(string str)

Parameters

str String

CreateMeasureContext(XSize, XGraphicsUnit, XPageDirection)

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

public static XGraphics CreateMeasureContext(XSize size, XGraphicsUnit pageUnit, XPageDirection pageDirection)

Parameters

size XSize

pageUnit XGraphicsUnit

pageDirection XPageDirection

Returns

XGraphics

FromPdfPage(PdfPage)

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

public static XGraphics FromPdfPage(PdfPage page)

Parameters

page PdfPage

Returns

XGraphics

FromPdfPage(PdfPage, XGraphicsUnit)

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

public static XGraphics FromPdfPage(PdfPage page, XGraphicsUnit unit)

Parameters

page PdfPage

unit XGraphicsUnit

Returns

XGraphics

FromPdfPage(PdfPage, XPageDirection)

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

public static XGraphics FromPdfPage(PdfPage page, XPageDirection pageDirection)

Parameters

page PdfPage

pageDirection XPageDirection

Returns

XGraphics

FromPdfPage(PdfPage, XGraphicsPdfPageOptions)

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

public static XGraphics FromPdfPage(PdfPage page, XGraphicsPdfPageOptions options)

Parameters

page PdfPage

options XGraphicsPdfPageOptions

Returns

XGraphics

FromPdfPage(PdfPage, XGraphicsPdfPageOptions, XPageDirection)

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

public static XGraphics FromPdfPage(PdfPage page, XGraphicsPdfPageOptions options, XPageDirection pageDirection)

Parameters

page PdfPage

options XGraphicsPdfPageOptions

pageDirection XPageDirection

Returns

XGraphics

FromPdfPage(PdfPage, XGraphicsPdfPageOptions, XGraphicsUnit)

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

public static XGraphics FromPdfPage(PdfPage page, XGraphicsPdfPageOptions options, XGraphicsUnit unit)

Parameters

page PdfPage

options XGraphicsPdfPageOptions

unit XGraphicsUnit

Returns

XGraphics

FromPdfPage(PdfPage, XGraphicsPdfPageOptions, XGraphicsUnit, XPageDirection)

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

public static XGraphics FromPdfPage(PdfPage page, XGraphicsPdfPageOptions options, XGraphicsUnit unit, XPageDirection pageDirection)

Parameters

page PdfPage

options XGraphicsPdfPageOptions

unit XGraphicsUnit

pageDirection XPageDirection

Returns

XGraphics

FromPdfForm(XPdfForm)

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

public static XGraphics FromPdfForm(XPdfForm form)

Parameters

form XPdfForm

Returns

XGraphics

FromForm(XForm)

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

public static XGraphics FromForm(XForm form)

Parameters

form XForm

Returns

XGraphics

FromImage(XImage)

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

public static XGraphics FromImage(XImage image)

Parameters

image XImage

Returns

XGraphics

FromImage(XImage, XGraphicsUnit)

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

public static XGraphics FromImage(XImage image, XGraphicsUnit unit)

Parameters

image XImage

unit XGraphicsUnit

Returns

XGraphics

Dispose()

Releases all resources used by this object.

public void Dispose()

DrawLine(XPen, XPoint, XPoint)

Draws a line connecting two XPoint structures.

public void DrawLine(XPen pen, XPoint pt1, XPoint pt2)

Parameters

pen XPen

pt1 XPoint

pt2 XPoint

DrawLine(XPen, Double, Double, Double, Double)

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

public void DrawLine(XPen pen, double x1, double y1, double x2, double y2)

Parameters

pen XPen

x1 Double

y1 Double

x2 Double

y2 Double

DrawLines(XPen, XPoint[])

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

public void DrawLines(XPen pen, XPoint[] points)

Parameters

pen XPen

points XPoint[]

DrawLines(XPen, Double, Double, Double[])

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

public void DrawLines(XPen pen, double x, double y, Double[] value)

Parameters

pen XPen

x Double

y Double

value Double[]

DrawBezier(XPen, XPoint, XPoint, XPoint, XPoint)

Draws a Bézier spline defined by four points.

public void DrawBezier(XPen pen, XPoint pt1, XPoint pt2, XPoint pt3, XPoint pt4)

Parameters

pen XPen

pt1 XPoint

pt2 XPoint

pt3 XPoint

pt4 XPoint

DrawBezier(XPen, Double, Double, Double, Double, Double, Double, Double, Double)

Draws a Bézier spline defined by four points.

public void DrawBezier(XPen pen, double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4)

Parameters

pen XPen

x1 Double

y1 Double

x2 Double

y2 Double

x3 Double

y3 Double

x4 Double

y4 Double

DrawBeziers(XPen, XPoint[])

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

public void DrawBeziers(XPen pen, XPoint[] points)

Parameters

pen XPen

points XPoint[]

DrawCurve(XPen, XPoint[])

Draws a cardinal spline through a specified array of points.

public void DrawCurve(XPen pen, XPoint[] points)

Parameters

pen XPen

points XPoint[]

DrawCurve(XPen, XPoint[], Int32, Int32, Double)

Draws a cardinal spline through a specified array of point using a specified tension. The drawing begins offset from the beginning of the array.

public void DrawCurve(XPen pen, XPoint[] points, int offset, int numberOfSegments, double tension)

Parameters

pen XPen

points XPoint[]

offset Int32

numberOfSegments Int32

tension Double

DrawCurve(XPen, XPoint[], Double)

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

public void DrawCurve(XPen pen, XPoint[] points, double tension)

Parameters

pen XPen

points XPoint[]

tension Double

DrawArc(XPen, XRect, Double, Double)

Draws an arc representing a portion of an ellipse.

public void DrawArc(XPen pen, XRect rect, double startAngle, double sweepAngle)

Parameters

pen XPen

rect XRect

startAngle Double

sweepAngle Double

DrawArc(XPen, Double, Double, Double, Double, Double, Double)

Draws an arc representing a portion of an ellipse.

public void DrawArc(XPen pen, double x, double y, double width, double height, double startAngle, double sweepAngle)

Parameters

pen XPen

x Double

y Double

width Double

height Double

startAngle Double

sweepAngle Double

DrawRectangle(XPen, XRect)

Draws a rectangle.

public void DrawRectangle(XPen pen, XRect rect)

Parameters

pen XPen

rect XRect

DrawRectangle(XPen, Double, Double, Double, Double)

Draws a rectangle.

public void DrawRectangle(XPen pen, double x, double y, double width, double height)

Parameters

pen XPen

x Double

y Double

width Double

height Double

DrawRectangle(XBrush, XRect)

Draws a rectangle.

public void DrawRectangle(XBrush brush, XRect rect)

Parameters

brush XBrush

rect XRect

DrawRectangle(XBrush, Double, Double, Double, Double)

Draws a rectangle.

public void DrawRectangle(XBrush brush, double x, double y, double width, double height)

Parameters

brush XBrush

x Double

y Double

width Double

height Double

DrawRectangle(XPen, XBrush, XRect)

Draws a rectangle.

public void DrawRectangle(XPen pen, XBrush brush, XRect rect)

Parameters

pen XPen

brush XBrush

rect XRect

DrawRectangle(XPen, XBrush, Double, Double, Double, Double)

Draws a rectangle.

public void DrawRectangle(XPen pen, XBrush brush, double x, double y, double width, double height)

Parameters

pen XPen

brush XBrush

x Double

y Double

width Double

height Double

DrawRectangles(XPen, XRect[])

Draws a series of rectangles.

public void DrawRectangles(XPen pen, XRect[] rectangles)

Parameters

pen XPen

rectangles XRect[]

DrawRectangles(XBrush, XRect[])

Draws a series of rectangles.

public void DrawRectangles(XBrush brush, XRect[] rectangles)

Parameters

brush XBrush

rectangles XRect[]

DrawRectangles(XPen, XBrush, XRect[])

Draws a series of rectangles.

public void DrawRectangles(XPen pen, XBrush brush, XRect[] rectangles)

Parameters

pen XPen

brush XBrush

rectangles XRect[]

DrawRoundedRectangle(XPen, XRect, XSize)

Draws a rectangle with rounded corners.

public void DrawRoundedRectangle(XPen pen, XRect rect, XSize ellipseSize)

Parameters

pen XPen

rect XRect

ellipseSize XSize

DrawRoundedRectangle(XPen, Double, Double, Double, Double, Double, Double)

Draws a rectangle with rounded corners.

public void DrawRoundedRectangle(XPen pen, double x, double y, double width, double height, double ellipseWidth, double ellipseHeight)

Parameters

pen XPen

x Double

y Double

width Double

height Double

ellipseWidth Double

ellipseHeight Double

DrawRoundedRectangle(XBrush, XRect, XSize)

Draws a rectangle with rounded corners.

public void DrawRoundedRectangle(XBrush brush, XRect rect, XSize ellipseSize)

Parameters

brush XBrush

rect XRect

ellipseSize XSize

DrawRoundedRectangle(XBrush, Double, Double, Double, Double, Double, Double)

Draws a rectangle with rounded corners.

public void DrawRoundedRectangle(XBrush brush, double x, double y, double width, double height, double ellipseWidth, double ellipseHeight)

Parameters

brush XBrush

x Double

y Double

width Double

height Double

ellipseWidth Double

ellipseHeight Double

DrawRoundedRectangle(XPen, XBrush, XRect, XSize)

Draws a rectangle with rounded corners.

public void DrawRoundedRectangle(XPen pen, XBrush brush, XRect rect, XSize ellipseSize)

Parameters

pen XPen

brush XBrush

rect XRect

ellipseSize XSize

DrawRoundedRectangle(XPen, XBrush, Double, Double, Double, Double, Double, Double)

Draws a rectangle with rounded corners.

public void DrawRoundedRectangle(XPen pen, XBrush brush, double x, double y, double width, double height, double ellipseWidth, double ellipseHeight)

Parameters

pen XPen

brush XBrush

x Double

y Double

width Double

height Double

ellipseWidth Double

ellipseHeight Double

DrawEllipse(XPen, XRect)

Draws an ellipse defined by a bounding rectangle.

public void DrawEllipse(XPen pen, XRect rect)

Parameters

pen XPen

rect XRect

DrawEllipse(XPen, Double, Double, Double, Double)

Draws an ellipse defined by a bounding rectangle.

public void DrawEllipse(XPen pen, double x, double y, double width, double height)

Parameters

pen XPen

x Double

y Double

width Double

height Double

DrawEllipse(XBrush, XRect)

Draws an ellipse defined by a bounding rectangle.

public void DrawEllipse(XBrush brush, XRect rect)

Parameters

brush XBrush

rect XRect

DrawEllipse(XBrush, Double, Double, Double, Double)

Draws an ellipse defined by a bounding rectangle.

public void DrawEllipse(XBrush brush, double x, double y, double width, double height)

Parameters

brush XBrush

x Double

y Double

width Double

height Double

DrawEllipse(XPen, XBrush, XRect)

Draws an ellipse defined by a bounding rectangle.

public void DrawEllipse(XPen pen, XBrush brush, XRect rect)

Parameters

pen XPen

brush XBrush

rect XRect

DrawEllipse(XPen, XBrush, Double, Double, Double, Double)

Draws an ellipse defined by a bounding rectangle.

public void DrawEllipse(XPen pen, XBrush brush, double x, double y, double width, double height)

Parameters

pen XPen

brush XBrush

x Double

y Double

width Double

height Double

DrawPolygon(XPen, XPoint[])

Draws a polygon defined by an array of points.

public void DrawPolygon(XPen pen, XPoint[] points)

Parameters

pen XPen

points XPoint[]

DrawPolygon(XBrush, XPoint[], XFillMode)

Draws a polygon defined by an array of points.

public void DrawPolygon(XBrush brush, XPoint[] points, XFillMode fillMode)

Parameters

brush XBrush

points XPoint[]

fillMode XFillMode

DrawPolygon(XPen, XBrush, XPoint[], XFillMode)

Draws a polygon defined by an array of points.

public void DrawPolygon(XPen pen, XBrush brush, XPoint[] points, XFillMode fillMode)

Parameters

pen XPen

brush XBrush

points XPoint[]

fillMode XFillMode

DrawPie(XPen, XRect, Double, Double)

Draws a pie defined by an ellipse.

public void DrawPie(XPen pen, XRect rect, double startAngle, double sweepAngle)

Parameters

pen XPen

rect XRect

startAngle Double

sweepAngle Double

DrawPie(XPen, Double, Double, Double, Double, Double, Double)

Draws a pie defined by an ellipse.

public void DrawPie(XPen pen, double x, double y, double width, double height, double startAngle, double sweepAngle)

Parameters

pen XPen

x Double

y Double

width Double

height Double

startAngle Double

sweepAngle Double

DrawPie(XBrush, XRect, Double, Double)

Draws a pie defined by an ellipse.

public void DrawPie(XBrush brush, XRect rect, double startAngle, double sweepAngle)

Parameters

brush XBrush

rect XRect

startAngle Double

sweepAngle Double

DrawPie(XBrush, Double, Double, Double, Double, Double, Double)

Draws a pie defined by an ellipse.

public void DrawPie(XBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle)

Parameters

brush XBrush

x Double

y Double

width Double

height Double

startAngle Double

sweepAngle Double

DrawPie(XPen, XBrush, XRect, Double, Double)

Draws a pie defined by an ellipse.

public void DrawPie(XPen pen, XBrush brush, XRect rect, double startAngle, double sweepAngle)

Parameters

pen XPen

brush XBrush

rect XRect

startAngle Double

sweepAngle Double

DrawPie(XPen, XBrush, Double, Double, Double, Double, Double, Double)

Draws a pie defined by an ellipse.

public void DrawPie(XPen pen, XBrush brush, double x, double y, double width, double height, double startAngle, double sweepAngle)

Parameters

pen XPen

brush XBrush

x Double

y Double

width Double

height Double

startAngle Double

sweepAngle Double

DrawClosedCurve(XPen, XPoint[])

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

public void DrawClosedCurve(XPen pen, XPoint[] points)

Parameters

pen XPen

points XPoint[]

DrawClosedCurve(XPen, XPoint[], Double)

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

public void DrawClosedCurve(XPen pen, XPoint[] points, double tension)

Parameters

pen XPen

points XPoint[]

tension Double

DrawClosedCurve(XBrush, XPoint[])

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

public void DrawClosedCurve(XBrush brush, XPoint[] points)

Parameters

brush XBrush

points XPoint[]

DrawClosedCurve(XBrush, XPoint[], XFillMode)

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

public void DrawClosedCurve(XBrush brush, XPoint[] points, XFillMode fillMode)

Parameters

brush XBrush

points XPoint[]

fillMode XFillMode

DrawClosedCurve(XBrush, XPoint[], XFillMode, Double)

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

public void DrawClosedCurve(XBrush brush, XPoint[] points, XFillMode fillMode, double tension)

Parameters

brush XBrush

points XPoint[]

fillMode XFillMode

tension Double

DrawClosedCurve(XPen, XBrush, XPoint[])

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

public void DrawClosedCurve(XPen pen, XBrush brush, XPoint[] points)

Parameters

pen XPen

brush XBrush

points XPoint[]

DrawClosedCurve(XPen, XBrush, XPoint[], XFillMode)

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

public void DrawClosedCurve(XPen pen, XBrush brush, XPoint[] points, XFillMode fillMode)

Parameters

pen XPen

brush XBrush

points XPoint[]

fillMode XFillMode

DrawClosedCurve(XPen, XBrush, XPoint[], XFillMode, Double)

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

public void DrawClosedCurve(XPen pen, XBrush brush, XPoint[] points, XFillMode fillMode, double tension)

Parameters

pen XPen

brush XBrush

points XPoint[]

fillMode XFillMode

tension Double

DrawPath(XPen, XGraphicsPath)

Draws a graphical path.

public void DrawPath(XPen pen, XGraphicsPath path)

Parameters

pen XPen

path XGraphicsPath

DrawPath(XBrush, XGraphicsPath)

Draws a graphical path.

public void DrawPath(XBrush brush, XGraphicsPath path)

Parameters

brush XBrush

path XGraphicsPath

DrawPath(XPen, XBrush, XGraphicsPath)

Draws a graphical path.

public void DrawPath(XPen pen, XBrush brush, XGraphicsPath path)

Parameters

pen XPen

brush XBrush

path XGraphicsPath

DrawString(String, XFont, XBrush, XPoint)

Draws the specified text string.

public void DrawString(string s, XFont font, XBrush brush, XPoint point)

Parameters

s String

font XFont

brush XBrush

point XPoint

DrawString(String, XFont, XBrush, XPoint, XStringFormat)

Draws the specified text string.

public void DrawString(string s, XFont font, XBrush brush, XPoint point, XStringFormat format)

Parameters

s String

font XFont

brush XBrush

point XPoint

format XStringFormat

DrawString(String, XFont, XBrush, Double, Double)

Draws the specified text string.

public void DrawString(string s, XFont font, XBrush brush, double x, double y)

Parameters

s String

font XFont

brush XBrush

x Double

y Double

DrawString(String, XFont, XBrush, Double, Double, XStringFormat)

Draws the specified text string.

public void DrawString(string s, XFont font, XBrush brush, double x, double y, XStringFormat format)

Parameters

s String

font XFont

brush XBrush

x Double

y Double

format XStringFormat

DrawString(String, XFont, XBrush, XRect)

Draws the specified text string.

public void DrawString(string s, XFont font, XBrush brush, XRect layoutRectangle)

Parameters

s String

font XFont

brush XBrush

layoutRectangle XRect

DrawString(String, XFont, XBrush, XRect, XStringFormat)

Draws the specified text string.

public void DrawString(string text, XFont font, XBrush brush, XRect layoutRectangle, XStringFormat format)

Parameters

text String

font XFont

brush XBrush

layoutRectangle XRect

format XStringFormat

MeasureString(String, XFont, XStringFormat)

Measures the specified string when drawn with the specified font.

public XSize MeasureString(string text, XFont font, XStringFormat stringFormat)

Parameters

text String

font XFont

stringFormat XStringFormat

Returns

XSize

MeasureString(String, XFont)

Measures the specified string when drawn with the specified font.

public XSize MeasureString(string text, XFont font)

Parameters

text String

font XFont

Returns

XSize

DrawImage(XImage, XPoint)

Draws the specified image.

public void DrawImage(XImage image, XPoint point)

Parameters

image XImage

point XPoint