Class for a canvas (a two-dimensional region on which all painting occurs).

Inheritance Hierarchy

System.Object
  BitMiracle.Docotic.Pdf.PdfCanvas

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public sealed class PdfCanvas
VB
Public NotInheritable Class PdfCanvas

The PdfCanvas type exposes the following members.

Properties

  NameDescription
Public propertyBlendMode
(PDF 1.4) Gets or sets the current blend mode.
Public propertyBrush
Gets the PdfBrush object that encapsulates the properties related to non-stroking operations.
Public propertyCharacterSpacing
Gets or sets the current character spacing.
Public propertyCurrentPosition
Gets or sets the current position for path operations.
Public propertyFlatnessTolerance
Gets or sets the flatness tolerance.
Public propertyFont
Gets or sets the current font for text-drawing operation.
Public propertyFontSize
Gets or sets the size of the current font in points.
Public propertyPen
Gets the PdfPen object that encapsulates the properties related to stroking operations.
Public propertyResolution
Gets or sets the resolution of the canvas.
Public propertyTextAngle
Gets or sets the text rotation angle in degrees.
Public propertyTextHorizontalScaling
Gets or sets the current horizontal scaling of text.
Public propertyTextPosition
Gets or sets the current text position.
Public propertyTextRenderingMode
Gets or sets the current text rendering mode.
Public propertyTextRise
Gets or sets the current text rise.
Public propertyTransformationMatrix
Gets the current transformation matrix for this PdfCanvas.
Public propertyWordSpacing
Gets or sets the current word spacing.

Methods

  NameDescription
Public methodAppendArc(RectangleF, PointF, PointF)
Appends an arc representing a portion of an ellipse specified by RectangleF structure and two radial endpoints to the current path.
Public methodAppendArc(PdfRectangle, PdfPoint, PdfPoint)
Appends an arc representing a portion of an ellipse specified by PdfRectangle structure and two radial endpoints to the current path.
Public methodAppendArc(RectangleF, PointF, PointF, Boolean)
Appends an arc representing a portion of an ellipse specified by RectangleF structure, two radial endpoints and a direction to the current path.
Public methodAppendArc(PdfRectangle, PdfPoint, PdfPoint, Boolean)
Appends an arc representing a portion of an ellipse specified by PdfRectangle structure, two radial endpoints and a direction to the current path.
Public methodAppendArc(PointF, Single, Single, Single, Single)
Appends a straight line segment and an arc representing a portion of an ellipse specified by radius and center to the current path.
Public methodAppendArc(PdfPoint, Double, Double, Double, Double)
Appends a straight line segment and an arc representing a portion of an ellipse specified by radius and center to the current path.
Public methodAppendCircle(PointF, Single)
Appends a circle with specified center coordinates and radius to the current path.
Public methodAppendCircle(PdfPoint, Double)
Appends a circle with specified center coordinates and radius to the current path.
Public methodAppendCurveTo(PointF, PointF, PointF)
Appends a cubic Bezier curve to the current path.
Public methodAppendCurveTo(PdfPoint, PdfPoint, PdfPoint)
Appends a cubic Bezier curve to the current path.
Public methodAppendEllipse(RectangleF)
Appends an ellipse specified by a bounding RectangleF structure to the current path.
Public methodAppendEllipse(PdfRectangle)
Appends an ellipse specified by a bounding PdfRectangle structure to the current path.
Public methodAppendLineTo(PointF)
Appends a straight line segment from the CurrentPosition to specified endpoint to the current path.
Public methodAppendLineTo(PdfPoint)
Appends a straight line segment from the CurrentPosition to specified endpoint to the current path.
Public methodAppendLineTo(Double, Double)
Appends a straight line segment from the CurrentPosition to specified endpoint to the current path.
Public methodAppendPie(RectangleF, PointF, PointF)
Appends a pie shape defined by an ellipse specified by a RectangleF structure and two radial lines to the current path.
Public methodAppendPie(RectangleF, Single, Single)
Appends a pie shape defined by an ellipse specified by a RectangleF structure and two radial lines to the current path.
Public methodAppendPie(PdfRectangle, PdfPoint, PdfPoint)
Appends a pie shape defined by an ellipse specified by a PdfRectangle structure and two radial lines to the current path.
Public methodAppendPie(PdfRectangle, Double, Double)
Appends a pie shape defined by an ellipse specified by a PdfRectangle structure and two radial lines to the current path.
Public methodAppendRectangle(RectangleF)
Appends a rectangle specified by a RectangleF structure to the current path as a complete subpath.
Public methodAppendRectangle(PdfRectangle)
Appends a rectangle specified by a PdfRectangle structure to the current path as a complete subpath.
Public methodAppendRectangle(RectangleF, Single)
Appends a rotated rectangle specified by a RectangleF structure to the current path as a complete subpath.
Public methodAppendRectangle(PdfRectangle, Double)
Appends a rotated rectangle specified by a PdfRectangle structure to the current path as a complete subpath.
Public methodAppendRoundedRectangle(RectangleF, SizeF)
Appends a rectangle structure with rounded corners specified by a RectangleF to the current path as a complete subpath.
Public methodAppendRoundedRectangle(PdfRectangle, PdfSize)
Appends a rectangle structure with rounded corners specified by a PdfRectangle to the current path as a complete subpath.
Public methodClear
Clears the entire canvas and resets all current graphics parameters to their defaults.
Public methodCloseAndStrokePath
Closes and strokes the current path.
Public methodClosePath
Closes the current subpath by appending a straight line segment from the CurrentPosition to the starting point of the subpath.
Public methodDrawArc(RectangleF, PointF, PointF)
Draws an arc representing a portion of an ellipse specified by RectangleF structure and two radial endpoints.
Public methodDrawArc(PdfRectangle, PdfPoint, PdfPoint)
Draws an arc representing a portion of an ellipse specified by PdfRectangle structure and two radial endpoints.
Public methodDrawArc(RectangleF, PointF, PointF, Boolean)
Draws an arc representing a portion of an ellipse specified by RectangleF structure, two radial endpoints and a direction.
Public methodDrawArc(PdfRectangle, PdfPoint, PdfPoint, Boolean)
Draws an arc representing a portion of an ellipse specified by PdfRectangle structure, two radial endpoints and a direction.
Public methodDrawArc(PointF, Single, Single, Single, Single)
Draws a straight line and an arc representing a portion of an ellipse specified by radius and center.
Public methodDrawArc(PdfPoint, Double, Double, Double, Double)
Draws a straight line and an arc representing a portion of an ellipse specified by radius and center.
Public methodDrawCircle(PointF, Single)
Draws a circle with specified center coordinates and radius.
Public methodDrawCircle(PdfPoint, Double)
Draws a circle with specified center coordinates and radius.
Public methodDrawCircle(PointF, Single, PdfDrawMode)
Draws a circle with specified center coordinates and radius.
Public methodDrawCircle(PdfPoint, Double, PdfDrawMode)
Draws a circle with specified center coordinates and radius.
Public methodDrawCurveTo(PointF, PointF, PointF)
Draws a cubic Bezier curve.
Public methodDrawCurveTo(PdfPoint, PdfPoint, PdfPoint)
Draws a cubic Bezier curve.
Public methodDrawEllipse(RectangleF)
Draws an ellipse specified by a bounding RectangleF structure.
Public methodDrawEllipse(PdfRectangle)
Draws an ellipse specified by a bounding PdfRectangle structure.
Public methodDrawEllipse(RectangleF, PdfDrawMode)
Draws an ellipse specified by a bounding RectangleF structure.
Public methodDrawEllipse(PdfRectangle, PdfDrawMode)
Draws an ellipse specified by a bounding PdfRectangle structure.
Public methodDrawImage(PdfImage, PdfPoint)
Draws the specified image, using its original size, at the specified location.
Public methodDrawImage(PdfImage, PointF)
Draws the specified image, using its original size, at the specified location.
Public methodDrawImage(PdfImage, PdfPoint, Double)
Draws the specified image, using its original size, at the specified location and with the specified rotation.
Public methodDrawImage(PdfImage, Double, Double)
Draws the specified image, using its original size, at the specified location.
Public methodDrawImage(PdfImage, PointF, Single)
Draws the specified image, using its original size, at the specified location and with the specified rotation.
Public methodDrawImage(PdfImage, PdfPoint, PdfSize, Double)
Draws the specified image at the specified location with specified size and with the specified rotation.
Public methodDrawImage(PdfImage, Double, Double, Double)
Draws the specified image, using its original size, at the specified location and with the specified rotation.
Public methodDrawImage(PdfImage, PointF, SizeF, Single)
Draws the specified image at the specified location with specified size and with the specified rotation.
Public methodDrawImage(PdfImage, Double, Double, Double, Double, Double)
Draws the specified image at the specified location with specified size and with the specified rotation.
Public methodDrawLineTo(PointF)
Draws a straight line segment from the CurrentPosition to specified endpoint.
Public methodDrawLineTo(PdfPoint)
Draws a straight line segment from the CurrentPosition to specified endpoint.
Public methodDrawLineTo(Double, Double)
Draws a straight line segment from the CurrentPosition to specified endpoint.
Public methodDrawPie(RectangleF, PointF, PointF)
Draws a pie shape defined by an ellipse specified by a RectangleF structure and two radial lines.
Public methodDrawPie(RectangleF, Single, Single)
Draws a pie shape defined by an ellipse specified by a RectangleF structure and two radial lines.
Public methodDrawPie(PdfRectangle, PdfPoint, PdfPoint)
Draws a pie shape defined by an ellipse specified by a PdfRectangle structure and two radial lines.
Public methodDrawPie(PdfRectangle, Double, Double)
Draws a pie shape defined by an ellipse specified by a PdfRectangle structure and two radial lines.
Public methodDrawPie(RectangleF, PointF, PointF, PdfDrawMode)
Draws a pie shape defined by an ellipse specified by a RectangleF structure and two radial lines.
Public methodDrawPie(RectangleF, Single, Single, PdfDrawMode)
Draws a pie shape defined by an ellipse specified by a RectangleF structure and two radial lines.
Public methodDrawPie(PdfRectangle, PdfPoint, PdfPoint, PdfDrawMode)
Draws a pie shape defined by an ellipse specified by a PdfRectangle structure and two radial lines.
Public methodDrawPie(PdfRectangle, Double, Double, PdfDrawMode)
Draws a pie shape defined by an ellipse specified by a PdfRectangle structure and two radial lines.
Public methodDrawRectangle(RectangleF)
Draws a rectangle specified by a RectangleF structure.
Public methodDrawRectangle(PdfRectangle)
Draws a rectangle specified by a PdfRectangle structure.
Public methodDrawRectangle(RectangleF, PdfDrawMode)
Draws a rectangle specified by a RectangleF structure.
Public methodDrawRectangle(RectangleF, Single)
Draws a rotated rectangle specified by a RectangleF structure.
Public methodDrawRectangle(PdfRectangle, PdfDrawMode)
Draws a rectangle specified by a PdfRectangle structure.
Public methodDrawRectangle(PdfRectangle, Double)
Draws a rotated rectangle specified by a PdfRectangle structure.
Public methodDrawRectangle(RectangleF, Single, PdfDrawMode)
Draws a rotated rectangle specified by a RectangleF structure.
Public methodDrawRectangle(PdfRectangle, Double, PdfDrawMode)
Draws a rotated rectangle specified by a PdfRectangle structure.
Public methodDrawRoundedRectangle(RectangleF, SizeF)
Draws a rectangle structure with rounded corners specified by a RectangleF structure.
Public methodDrawRoundedRectangle(PdfRectangle, PdfSize)
Draws a rectangle structure with rounded corners specified by a PdfRectangle structure.
Public methodDrawRoundedRectangle(RectangleF, SizeF, PdfDrawMode)
Draws a rectangle structure with rounded corners specified by a RectangleF structure.
Public methodDrawRoundedRectangle(PdfRectangle, PdfSize, PdfDrawMode)
Draws a rectangle structure with rounded corners specified by a PdfRectangle structure.
Public methodDrawString(String)
Draws the specified text string starting from the current TextPosition.
Public methodDrawString(PointF, String)
Draws the specified text string starting from the specified position.
Public methodDrawString(String, ICollection<Double>)
Draws the specified text string starting from the current TextPosition.
Public methodDrawString(String, ICollection<Single>)
Draws the specified text string starting from the current TextPosition.
Public methodDrawString(PdfPoint, String)
Draws the specified text string starting from the specified position.
Public methodDrawString(Double, Double, String)
Draws the specified text string starting from the specified position.
Public methodDrawString(PointF, Single, String)
Draws the specified text string starting from the specified position rotated by the specified angle.
Public methodDrawString(PdfPoint, Double, String)
Draws the specified text string starting from the specified position rotated by the specified angle.
Public methodDrawString(Double, Double, Double, String)
Draws the specified text string starting from the specified position rotated by the specified angle.
Public methodDrawString(PointF, Single, String, ICollection<Single>)
Draws the specified text string starting from the specified position rotated by the specified angle.
Public methodDrawString(String, PdfRectangle, PdfTextAlign, PdfVerticalAlign)
Draws the specified text string in the specified rectangle.
Public methodDrawString(String, RectangleF, PdfTextAlign, PdfVerticalAlign)
Draws the specified text string in the specified rectangle.
Public methodDrawString(PdfPoint, Double, String, ICollection<Double>)
Draws the specified text string starting from the specified position rotated by the specified angle.
Public methodDrawString(Double, Double, Double, String, ICollection<Double>)
Draws the specified text string starting from the specified position rotated by the specified angle.
Public methodDrawString(Single, Single, Single, String, ICollection<Single>)
Draws the specified text string starting from the specified position rotated by the specified angle.
Public methodDrawText(String, PdfRectangle, PdfTextAlign, PdfVerticalAlign)
Draws the specified text string in the specified rectangle using specified formatting options.
Public methodDrawText(String, RectangleF, PdfTextAlign, PdfVerticalAlign)
Draws the specified text string in the specified rectangle using specified formatting options.
Public methodDrawText(String, PdfRectangle, PdfTextAlign, PdfVerticalAlign, Double)
Draws the specified text string in the specified rectangle using specified formatting options.
Public methodDrawText(String, RectangleF, PdfTextAlign, PdfVerticalAlign, Single)
Draws the specified text string in the specified rectangle using specified formatting options.
Public methodDrawText(String, PdfRectangle, PdfTextAlign, PdfVerticalAlign, Double, Boolean)
Draws the specified text string in the specified rectangle using specified formatting options.
Public methodDrawText(String, RectangleF, PdfTextAlign, PdfVerticalAlign, Single, Boolean)
Draws the specified text string in the specified rectangle using specified formatting options.
Public methodDrawXObject(PdfXObject, PdfPoint)
Draws the specified XObject, using its original size, at the specified location.
Public methodDrawXObject(PdfXObject, PointF)
Draws the specified object, using its original size, at the specified location.
Public methodDrawXObject(PdfXObject, PdfPoint, Double)
Draws the specified object, using its original size, at the specified location and with the specified rotation.
Public methodDrawXObject(PdfXObject, Double, Double)
Draws the specified object, using its original size, at the specified location.
Public methodDrawXObject(PdfXObject, PointF, Single)
Draws the specified object, using its original size, at the specified location and with the specified rotation.
Public methodDrawXObject(PdfXObject, PdfPoint, PdfSize, Double)
Draws the specified object at the specified location with specified size and with the specified rotation.
Public methodDrawXObject(PdfXObject, Double, Double, Double)
Draws the specified object, using its original size, at the specified location and with the specified rotation.
Public methodDrawXObject(PdfXObject, PointF, SizeF, Single)
Draws the specified object at the specified location with specified size and with the specified rotation.
Public methodDrawXObject(PdfXObject, Double, Double, Double, Double, Double)
Draws the specified object at the specified location with specified size and with the specified rotation.
Public methodEquals (Inherited from Object.)
Public methodFillAndStrokePath(FillMode)
Fills and then strokes the current path using the specified rule to determine the region to fill.
Public methodFillAndStrokePath(PdfFillMode)
Fills and then strokes the current path using the specified rule to determine the region to fill.
Public methodFillPath(FillMode)
Fills the current path using the specified rule to determine the region to fill.
Public methodFillPath(PdfFillMode)
Fills the current path using the specified rule to determine the region to fill.
Public methodGetHashCode (Inherited from Object.)
Public methodGetText
Retrieves all text drawn on the canvas in plain text format.
Public methodGetTextData
Gets all text drawn on the canvas as the collection of the PdfTextData objects.
Public methodGetTextHeight
Gets the height of a text in pixels when drawn with current Font.
Public methodGetTextWidth
Gets the width of the specified string in pixels when drawn with current Font.
Public methodGetType (Inherited from Object.)
Public methodMeasureText
Measures the specified string when drawn with current Font.
Public methodResetPath
Resets the current path.
Public methodResetTransform
Resets the current transformation matrix of this PdfCanvas to the identity matrix.
Public methodRestoreState
Restores the last saved graphics state.
Public methodRotateTransform
Applies the specified rotation to the transformation matrix of this PdfCanvas.
Public methodSaveState
Saves the current graphics state.
Public methodScaleTransform
Applies the specified scaling operation to the transformation matrix of this PdfCanvas by prepending it to the transformation matrix.
Public methodSetClip(FillMode)
Modifies the current clipping path by intersecting it with the current path, using the specified rule to determine which regions lay inside the clipping path.
Public methodSetClip(PdfFillMode)
Modifies the current clipping path by intersecting it with the current path, using the specified rule to determine which regions lay inside the clipping path.
Public methodSkewTransform
Skews the x axis by an angle alpha and the y axis by an angle beta.
Public methodStrokePath
Strokes the current path.
Public methodToString (Inherited from Object.)
Public methodTransform
Transforms coordinate system of this PdfCanvas by multiplying its current transformation matrix by specified PdfMatrix.
Public methodTranslateTransform
Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this PdfCanvas.

See Also