Class PathCollection
A aggregate of IPaths to apply common operations to them.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public class PathCollection : IPathCollection, IEnumerable<IPath>, IEnumerable
Constructors
| Edit this page View SourcePathCollection(params IPath[])
Initializes a new instance of the PathCollection class.
Declaration
public PathCollection(params IPath[] paths)
Parameters
Type | Name | Description |
---|---|---|
IPath[] | paths | The collection of paths |
PathCollection(IEnumerable<IPath>)
Initializes a new instance of the PathCollection class.
Declaration
public PathCollection(IEnumerable<IPath> paths)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IPath> | paths | The collection of paths |
Properties
| Edit this page View SourceBounds
Gets the bounds enclosing the path
Declaration
public RectangleF Bounds { get; }
Property Value
Type | Description |
---|---|
RectangleF |
Methods
| Edit this page View SourceGetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<IPath> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<IPath> | An enumerator that can be used to iterate through the collection. |
Transform(Matrix3x2)
Transforms the path using the specified matrix.
Declaration
public IPathCollection Transform(Matrix3x2 matrix)
Parameters
Type | Name | Description |
---|---|---|
Matrix3x2 | matrix | The matrix. |
Returns
Type | Description |
---|---|
IPathCollection | A new path with the matrix applied to it. |