Click or drag to resize

PdfCanvas Class

The class representing a graphics context of the objects. It's used for performing simple graphics operations.
Inheritance Hierarchy
System Object
Spire.Pdf.Graphics PdfCanvas

Namespace: Spire.Pdf.Graphics
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public sealed class PdfCanvas

The PdfCanvas type exposes the following members.

Properties
Name Description
Public property ClientSize
Gets the size of the canvas reduced by margins and page templates.
Public property ColorSpace
Gets or sets the current color space.
Public property Size
Gets the size of the canvas.
Top
Methods
Name Description
Public method DrawArc(PdfPen, RectangleF, Single, Single)
Draws an arc.
Public method DrawArc(PdfPen, Single, Single, Single, Single, Single, Single)
Draws an arc.
Public method DrawBezier(PdfPen, PointF, PointF, PointF, PointF)
Draws a bezier curve.
Public method DrawBezier(PdfPen, Single, Single, Single, Single, Single, Single, Single, Single)
Draws a bezier curve.
Public method DrawEllipse(PdfBrush, RectangleF)
Draws an ellipse.
Public method DrawEllipse(PdfPen, RectangleF)
Draws an ellipse.
Public method DrawEllipse(PdfPen, PdfBrush, RectangleF)
Draws an ellipse.
Public method DrawEllipse(PdfBrush, Single, Single, Single, Single)
Draws an ellipse.
Public method DrawEllipse(PdfPen, Single, Single, Single, Single)
Draws an ellipse.
Public method DrawEllipse(PdfPen, PdfBrush, Single, Single, Single, Single)
Draws an ellipse.
Public method DrawImage(PdfImage, PointF)
Draws an image.
Public method DrawImage(PdfImage, RectangleF)
Draws an image.
Public method DrawImage(PdfImage, PointF, SizeF)
Draws an image.
Public method DrawImage(PdfImage, Single, Single)
Draws an image.
Public method DrawImage(PdfImage, Int32, PointF, SizeF)
Draws an image,recommending monochrome image.
Public method DrawImage(PdfImage, Single, Single, Single, Single)
Draws an image.
Public method DrawImage(PdfImage, Int32, Single, Single, Single, Single)
Draws an image,recommending monochrome image
Public method DrawLine(PdfPen, PointF, PointF)
Draws a line.
Public method DrawLine(PdfPen, Single, Single, Single, Single)
Draws a line.
Public method DrawPath(PdfBrush, PdfPath)
Draws a path.
Public method DrawPath(PdfPen, PdfPath)
Draws a path.
Public method DrawPath(PdfPen, PdfBrush, PdfPath)
Draws a path.
Public method DrawPie(PdfBrush, RectangleF, Single, Single)
Draws a pie.
Public method DrawPie(PdfPen, RectangleF, Single, Single)
Draws a pie.
Public method DrawPie(PdfPen, PdfBrush, RectangleF, Single, Single)
Draws a pie.
Public method DrawPie(PdfBrush, Single, Single, Single, Single, Single, Single)
Draws a pie.
Public method DrawPie(PdfPen, Single, Single, Single, Single, Single, Single)
Draws a pie.
Public method DrawPie(PdfPen, PdfBrush, Single, Single, Single, Single, Single, Single)
Draws a pie.
Public method DrawPolygon(PdfBrush, PointF )
Draws a polygon.
Public method DrawPolygon(PdfPen, PointF )
Draws a polygon.
Public method DrawPolygon(PdfPen, PdfBrush, PointF )
Draws a polygon.
Public method DrawRectangle(PdfBrush, RectangleF)
Draws a rectangle.
Public method DrawRectangle(PdfPen, RectangleF)
Draws a rectangle.
Public method DrawRectangle(PdfPen, PdfBrush, RectangleF)
Draws a rectangle.
Public method DrawRectangle(PdfBrush, Single, Single, Single, Single)
Draws a rectangle.
Public method DrawRectangle(PdfPen, Single, Single, Single, Single)
Draws a rectangle.
Public method DrawRectangle(PdfPen, PdfBrush, Single, Single, Single, Single)
Draws a rectangle.
Public method DrawString(String, PdfFontBase, PdfBrush, PointF)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfBrush, RectangleF)
Draws the specified text string at the specified location and size with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, PointF)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, RectangleF)
Draws the specified text string at the specified location and size with the specified Pen and Font objects.
Public method DrawString(String, PdfFontBase, PdfBrush, PointF, PdfStringFormat)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfBrush, PointF, Boolean)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfBrush, RectangleF, PdfStringFormat)
Draws the specified text string at the specified location and size with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfBrush, RectangleF, Boolean)
Draws the specified text string at the specified location and size with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfBrush, Single, Single)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, PdfBrush, PointF)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, PointF, PdfStringFormat)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, PointF, Boolean)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, RectangleF, PdfStringFormat)
Draws the specified text string at the specified location and size with the specified Pen and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, RectangleF, Boolean)
Draws the specified text string at the specified location and size with the specified Pen and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, Single, Single)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfBrush, PointF, PdfStringFormat, Boolean)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfBrush, RectangleF, PdfStringFormat, Boolean)
Draws the specified text string at the specified location and size with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfBrush, Single, Single, PdfStringFormat)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfBrush, Single, Single, Boolean)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, PdfBrush, PointF, PdfStringFormat)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, PdfBrush, PointF, Boolean)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, PdfBrush, RectangleF, PdfStringFormat)
Draws the specified text string at the specified location and size with the specified Pen, Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, PdfBrush, Single, Single)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, PointF, PdfStringFormat, Boolean)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, RectangleF, PdfStringFormat, Boolean)
Draws the specified text string at the specified location and size with the specified Pen and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, Single, Single, PdfStringFormat)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, Single, Single, Boolean)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfBrush, Single, Single, PdfStringFormat, Boolean)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, PdfBrush, PointF, PdfStringFormat, Boolean)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, PdfBrush, RectangleF, PdfStringFormat, Boolean)
Draws the specified text string at the specified location and size with the specified Pen, Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, PdfBrush, Single, Single, PdfStringFormat)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, PdfBrush, Single, Single, Boolean)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, Single, Single, PdfStringFormat, Boolean)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, PdfFontBase, PdfPen, PdfBrush, Single, Single, PdfStringFormat, Boolean)
Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawTemplate(PdfTemplate, PointF)
Draws a template using its original size, at the specified location.
Public method DrawTemplate(PdfTemplate, PointF, SizeF)
Draws a template at the specified location and size.
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Public method Flush
Flashes this instance.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Public method Restore
Restores the last state of this Graphics.
Public method Restore(PdfGraphicsState)
Restores the state of this Graphics to the state represented by a GraphicsState.
Public method RotateTransform(Single)
Rotates the coordinate system in clockwise direction.
Public method RotateTransform(Single, PointF)
Rotates the coordinate system in clockwise direction around specified point.
Public method Save
Saves the current state of this Graphics and identifies the saved state with a GraphicsState.
Public method ScaleTransform
Scales the coordinates by specified coordinates.
Public method SetClip(RectangleF)
Modifying the current clipping path by intersecting it with the current path.
Public method SetClip(PdfPath)
Modifying the current clipping path by intersecting it with the current path.
Public method SetClip(RectangleF, PdfFillMode)
Modifying the current clipping path by intersecting it with the current path.
Public method SetClip(PdfPath, PdfFillMode)
Modifying the current clipping path by intersecting it with the current path.
Public method SetTransparency(Single)
Sets the transparency.
Public method SetTransparency(Single, Single)
Sets the transparency.
Public method SetTransparency(Single, Single, PdfBlendMode)
Sets the transparency.
Public method SkewTransform
Skews the coordinate system axes.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Public method TranslateTransform
Translates the coordinates by specified coordinates.
Top
See Also