Class PathElement
PDF path element as a collection of path primitives (lines, Bezier curves etc.)
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Media.PDF.Elements
Assembly: Azos.Media.dll
Syntax
public class PathElement : PdfElement, IPdfObject
Constructors
PathElement(Single, Single)
Declaration
public PathElement(float x, float y)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | |
System.Single | y |
PathElement(Single, Single, PdfDrawStyle)
Declaration
public PathElement(float x, float y, PdfDrawStyle style)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | |
System.Single | y | |
PdfDrawStyle | style |
Properties
IsClosed
Declaration
public bool IsClosed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Primitives
Declaration
public List<PathPrimitive> Primitives { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<PathPrimitive> |
Style
Declaration
public PdfDrawStyle Style { get; set; }
Property Value
Type | Description |
---|---|
PdfDrawStyle |
Methods
AddBezier(Single, Single, Single, Single, Single, Single)
Declaration
public void AddBezier(float firstControlX, float firstControlY, float secondControlX, float secondControlY, float endX, float endY)
Parameters
Type | Name | Description |
---|---|---|
System.Single | firstControlX | |
System.Single | firstControlY | |
System.Single | secondControlX | |
System.Single | secondControlY | |
System.Single | endX | |
System.Single | endY |
AddLine(Single, Single)
Declaration
public void AddLine(float endX, float endY)
Parameters
Type | Name | Description |
---|---|---|
System.Single | endX | |
System.Single | endY |
Write(PdfWriter)
Declaration
public override void Write(PdfWriter writer)
Parameters
Type | Name | Description |
---|---|---|
PdfWriter | writer |