Link Search Menu Expand Document

Canvas Class

Represents class for a canvas (a two-dimensional region on which all painting occurs).
Inheritance Hierarchy
SystemObject
Bytescout.PDFCanvas
Bytescout.PDFGraphicsTemplate

Namespace:Bytescout.PDF
Assembly: Bytescout.PDF (in Bytescout.PDF.dll) Version: 3.5.1.1204-master
Syntax
public class Canvas

The Canvas type exposes the following members.

Properties
NameDescription
Public propertyBlendMode
Gets or sets the blend mode.
Public propertyHeight
Gets the height of the canvas.
Public propertyHTMLFormattingForTextEnabled
Set HTML formatting support for drawString() Enabled by default
Public propertyRenderingIntent
Gets or sets the rendering intent.
Public propertyWidth
Gets the width of the canvas.
Top
Methods
NameDescription
Public methodBeginMarkedContent
Initializes the creation of content group.
Public methodDrawArc(Pen, RectangleF, Single, Single)
Draws an arc representing a portion of an ellipse specified by a System.Drawing.RectangleF structure.
Public methodDrawArc(Pen, Single, Single, Single, Single, Single, Single)
Draws an arc representing a portion of an ellipse.
Public methodDrawCircle(Brush, PointF, Single)
Draws a circle with specified center coordinates and radius.
Public methodDrawCircle(Pen, PointF, Single)
Draws a circle with specified center coordinates and radius.
Public methodDrawCircle(Brush, Single, Single, Single)
Draws a circle with specified center coordinates and radius.
Public methodDrawCircle(Pen, Brush, PointF, Single)
Draws a circle with specified center coordinates and radius.
Public methodDrawCircle(Pen, Single, Single, Single)
Draws a circle with specified center coordinates and radius.
Public methodDrawCircle(Pen, Brush, Single, Single, Single)
Draws a circle with specified center coordinates and radius.
Public methodDrawCurve(Pen, PointF, PointF, PointF, PointF)
Draws a cubic Bézier curve.
Public methodDrawCurve(Pen, Single, Single, Single, Single, Single, Single, Single, Single)
Draws a cubic Bézier curve.
Public methodDrawEllipse(Brush, RectangleF)
Draws an ellipse defined by a bounding System.Drawing.RectangleF.
Public methodDrawEllipse(Pen, RectangleF)
Draws an ellipse defined by a bounding System.Drawing.RectangleF.
Public methodDrawEllipse(Pen, Brush, RectangleF)
Draws an ellipse defined by a bounding System.Drawing.RectangleF.
Public methodDrawEllipse(Brush, Single, Single, Single, Single)
Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width.
Public methodDrawEllipse(Pen, Single, Single, Single, Single)
Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width.
Public methodDrawEllipse(Pen, Brush, Single, Single, Single, Single)
Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width.
Public methodDrawImage(Image, Single, Single)
Draws the specified image, using its original size, at the specified location.
Public methodDrawImage(Image, Single, Single, Single, Single)
Draws the specified image at the specified location with specified size.
Public methodDrawLine(Pen, PointF, PointF)
Draws a line connecting two System.Drawing.PointF structures.
Public methodDrawLine(Pen, Single, Single, Single, Single)
Draws a line connecting the two points specified by the coordinate pairs.
Public methodDrawPath(Brush, Path)
Draws a Bytescout.PDF.Path.
Public methodDrawPath(Pen, Path)
Draws a Bytescout.PDF.Path.
Public methodDrawPath(Pen, Brush, Path)
Draws a Bytescout.PDF.Path.
Public methodDrawPie(Brush, RectangleF, Single, Single)
Draws a pie shape defined by an ellipse specified by a System.Drawing.RectangleF structure and two radial lines.
Public methodDrawPie(Pen, RectangleF, Single, Single)
Draws a pie shape defined by an ellipse specified by a System.Drawing.RectangleF structure and two radial lines.
Public methodDrawPie(Pen, Brush, RectangleF, Single, Single)
Draws a pie shape defined by an ellipse specified by a System.Drawing.RectangleF structure and two radial lines.
Public methodDrawPie(Brush, Single, Single, Single, Single, Single, Single)
Draws a pie shape.
Public methodDrawPie(Pen, Single, Single, Single, Single, Single, Single)
Draws a pie shape.
Public methodDrawPie(Pen, Brush, Single, Single, Single, Single, Single, Single)
Draws a pie shape.
Public methodDrawPolygon(Brush, PointsArray)
Draws a polygon defined by an array of System.Drawing.PointF structures.
Public methodDrawPolygon(Brush, PointF)
Draws a polygon defined by an array of System.Drawing.PointF structures.
Public methodDrawPolygon(Pen, PointsArray)
Draws a polygon defined by an array of System.Drawing.PointF structures.
Public methodDrawPolygon(Pen, PointF)
Draws a polygon defined by an array of System.Drawing.PointF structures.
Public methodDrawPolygon(Pen, Brush, PointsArray)
Draws a polygon defined by an array of System.Drawing.PointF structures.
Public methodDrawPolygon(Pen, Brush, PointF)
Draws a polygon defined by an array of System.Drawing.PointF structures.
Public methodDrawRectangle(Brush, RectangleF)
Draws a rectangle specified by a System.Drawing.Rectangle structure.
Public methodDrawRectangle(Pen, RectangleF)
Draws a rectangle specified by a System.Drawing.Rectangle structure.
Public methodDrawRectangle(Pen, Brush, RectangleF)
Draws a rectangle specified by a System.Drawing.Rectangle structure.
Public methodDrawRectangle(Brush, Single, Single, Single, Single)
Draws a rectangle specified by a coordinate pair, a width, and a height.
Public methodDrawRectangle(Pen, Single, Single, Single, Single)
Draws a rectangle specified by a coordinate pair, a width, and a height.
Public methodDrawRectangle(Pen, Brush, Single, Single, Single, Single)
Draws a rectangle specified by a coordinate pair, a width, and a height.
Public methodDrawRoundedRectangle(Brush, RectangleF, Single)
Draws a rectangle structure with rounded corners specified by a System.Drawing.RectangleF structure.
Public methodDrawRoundedRectangle(Pen, RectangleF, Single)
Draws a rectangle structure with rounded corners specified by a System.Drawing.RectangleF structure.
Public methodDrawRoundedRectangle(Pen, Brush, RectangleF, Single)
Draws a rectangle structure with rounded corners specified by a System.Drawing.RectangleF structure.
Public methodDrawRoundedRectangle(Brush, Single, Single, Single, Single, Single)
Draws a rectangle structure with rounded corners specified by a coordinate pair, a width, and a height.
Public methodDrawRoundedRectangle(Pen, Single, Single, Single, Single, Single)
Draws a rectangle structure with rounded corners specified by a coordinate pair, a width, and a height.
Public methodDrawRoundedRectangle(Pen, Brush, Single, Single, Single, Single, Single)
Draws a rectangle structure with rounded corners specified by a coordinate pair, a width, and a height.
Public methodDrawString(String, Font, Brush, RectangleF)
Draws the specified text string at the specified location and size with the specified Brush and font objects.
Public methodDrawString(String, Font, Pen, RectangleF)
Draws the specified text string at the specified location and size with the specified pen and font objects.
Public methodDrawString(String, Font, Brush, Pen, RectangleF)
Draws the specified text string at the specified location and size with the specified pen, Brush and font objects.
Public methodDrawString(String, Font, Brush, RectangleF, StringFormat)
Draws the specified text string at the specified location and size with the specified Brush and font objects.
Public methodDrawString(String, Font, Brush, Single, Single)
Draws the specified text string at the specified location with the specified Brush and font objects.
Public methodDrawString(String, Font, Pen, RectangleF, StringFormat)
Draws the specified text string at the specified location and size with the specified pen and font objects.
Public methodDrawString(String, Font, Pen, Single, Single)
Draws the specified text string at the specified location with the specified pen and font objects.
Public methodDrawString(String, Font, Brush, Pen, RectangleF, StringFormat)
Draws the specified text string at the specified location and size with the specified pen, Brush and font objects.
Public methodDrawString(String, Font, Brush, Pen, Single, Single)
Draws the specified text string at the specified location with the specified pen, Brush and font objects.
Public methodDrawString(String, Font, Brush, Single, Single, StringFormat)
Draws the specified text string at the specified location with the specified Brush and font objects.
Public methodDrawString(String, Font, Pen, Single, Single, StringFormat)
Draws the specified text string at the specified location with the specified pen and font objects.
Public methodDrawString(String, Font, Brush, Pen, Single, Single, StringFormat)
Draws the specified text string at the specified location with the specified pen, Brush and font objects.
Public methodDrawString(String, Font, Brush, Single, Single, Single, Single, StringFormat)
Draws the specified text string at the specified location and size with the specified Brush and font objects.
Public methodDrawString(String, Font, Pen, Single, Single, Single, Single, StringFormat)
Draws the specified text string at the specified location and size with the specified pen and font objects.
Public methodDrawString(String, Font, Brush, Pen, Single, Single, Single, Single, StringFormat)
Draws the specified text string at the specified location and size with the specified pen, Brush and font objects.
Public methodDrawTable
Draws the specified table at the specified location.
Public methodDrawTemplate(GraphicsTemplate, Single, Single)
Draws a template using its original size, at the specified location.
Public methodDrawTemplate(GraphicsTemplate, Single, Single, Single, Single)
Draws a template at the specified location and size.
Public methodEndMarkedContent
Finalizes an optional content group.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodMeasureString(String, Font)
Measures the specified string when drawn with the specified Font.
Public methodMeasureString(String, Font, StringFormat)
Measures the width of the text, considering Word Spacing and Character Spacing of the String Format
Public methodMeasureString(String, Font, Single)
Measures the specified string limited to the specified width.
Public methodMeasureString(String, Font, Single, StringFormat)
Measures the specified string limited to the specified width.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRestoreGraphicsState
Restores the last saved graphics state.
Public methodRotateTransform
Applies the specified rotation to the transformation matrix.
Public methodSaveGraphicsState
Saves the current graphics state.
Public methodScaleTransform
Applies the specified scaling operation to the transformation matrix.
Public methodSetClip(RectangleF)
Modifies the current clipping path by intersecting it with the current path.
Public methodSetClip(Path)
Modifies the current clipping path by intersecting it with the current path.
Public methodSetClip(Single, Single, Single, Single)
Modifies the current clipping path by intersecting it with the current path.
Public methodSkewTransform
Skews the x axis by an angle alpha and the y axis by an angle beta.
Public methodToString (Inherited from Object.)
Public methodTranslateTransform
Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix.
Top
See Also

Reference