PdfPath Class |
Namespace: Atalasoft.PdfDoc.Generating.Shapes
The PdfPath type exposes the following members.
Name | Description | |
---|---|---|
PdfPath(IPdfColor) |
Initializes a new instance of the PdfPath class.
| |
PdfPath(PdfBaseShape) |
Initializes a new instance of the PdfPath class.
| |
PdfPath(IPdfColor, Double) |
Initializes a new instance of the PdfPath class.
| |
PdfPath(IPdfColor, Double, IPdfColor) |
Initializes a new instance of the PdfPath class.
|
Name | Description | |
---|---|---|
Clip |
Gets or sets a value indicating whether this PdfBaseShape shape will clip.
(Inherited from PdfBaseShape.) | |
FillColor |
Gets or sets the color of the fill.
(Inherited from PdfBaseShape.) | |
FillMethod |
Gets or sets the fill method.
| |
Location |
Gets or sets the location.
(Inherited from PdfBaseShape.) | |
Name |
Gets or sets the name of the IPdfRenderable object.
(Inherited from PdfBaseShape.) | |
OutlineColor |
Gets or sets the color of the outline.
(Inherited from PdfBaseShape.) | |
PathOperations |
Gets the path operations that comprise the shape. This will be a list of operations
that will be performed in order.
| |
Rotation |
Gets or sets the rotation in degrees.
(Inherited from PdfBaseShape.) | |
Scale |
Gets or sets the scale.
(Inherited from PdfBaseShape.) | |
Style |
Gets or sets the style.
(Inherited from PdfBaseShape.) |
Name | Description | |
---|---|---|
Clone |
Creates a new object that is a copy of the current instance.
(Inherited from PdfBaseShape.) | |
CloneInstance |
Clones the instance.
(Overrides PdfBaseShapeCloneInstance.) | |
Close |
Closes the path to the previous MoveTo command.
| |
CopyBaseShapePropertiesTo |
Copies the base shape properties to the parameter shape.
(Inherited from PdfBaseShape.) | |
CurveTo(PdfPoint, PdfPoint, PdfPoint) |
Curves to the destination point from the previous point using the sourceControlPoint and destinationControl point to render the curve
| |
CurveTo(Double, Double, Double, Double, Double, Double) |
Curves to the destination point from the previous point using the (x1, y1) as the source control point, (x2, y2) as the destination control point and (x3, y3) as the destination point to render the curve
| |
DrawShape |
Draws the shape.
(Overrides PdfBaseShapeDrawShape(PdfPageRenderer).) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GenerateTransform |
Generates the default transform based on Scale, Rotate, and Translate.
(Inherited from PdfBaseShape.) | |
GetBounds |
Gets the bounding box of the PdfPath.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LineTo(PdfPoint) |
Draws a line from the current drawing point to the parameter
| |
LineTo(Double, Double) |
Draws a line from the current drawing point to (x, y)
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
MoveTo(PdfPoint) |
Sets the current drawing point to the parameter
| |
MoveTo(Double, Double) |
Sets the current drawing point to (x, y)
| |
NotifyResourceRenamed |
Notifies a resource consumer that a resource was renamed.
(Inherited from PdfBaseShape.) | |
OnResourceRenamed |
Called when a resource in the base shape has been renamed.
(Inherited from PdfBaseShape.) | |
OnResourcesRequested |
Called when the PdfBaseShape is requested to report resources used. If client code
consumes resources, it should override this method combining its results with those of
base.OnResourceRequested (Inherited from PdfBaseShape.) | |
Render |
Generates the PDF.
(Inherited from PdfBaseShape.) | |
ResourcesUsed |
Reports a list of all resources consumed by the object of the given class.
(Inherited from PdfBaseShape.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
page.DrawingList.Add(path); PdfPath path = new PdfPath(PdfColorFactory.FromGray(0.0), 2.0); path.MoveTo(new PdfPoint(0, 0)); path.LineTo(new PdfPoint(100, 150)); path.CurveTo(new PdfPoint(100, 250), new PdfPoint(200, 250), new PdfPoint(200, 150)); path.LineTo(new PdfPoint(300, 40)); path.CurveTo(new PdfPoint(340, 0), new PdfPoint(340, 0), new PdfPoint(380, 40)); path.CurveTo(new PdfPoint(380,100), new PdfPoint(380,100),new PdfPoint(600, 40)); page.DrawingList.Add(path);