Class PathCollection
- Namespace
- SixLabors.ImageSharp.Drawing
- Assembly
- SixLabors.ImageSharp.Drawing.dll
A aggregate of IPaths to apply common operations to them.
public class PathCollection : IPathCollection, IEnumerable<IPath>, IEnumerable
- Inheritance
-
PathCollection
- Implements
- Inherited Members
- Extension Methods
Constructors
PathCollection(params IPath[])
Initializes a new instance of the PathCollection class.
public PathCollection(params IPath[] paths)
Parameters
pathsIPath[]The collection of paths
PathCollection(IEnumerable<IPath>)
Initializes a new instance of the PathCollection class.
public PathCollection(IEnumerable<IPath> paths)
Parameters
pathsIEnumerable<IPath>The collection of paths
Properties
Bounds
Gets the bounds enclosing the path
public RectangleF Bounds { get; }
Property Value
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<IPath> GetEnumerator()
Returns
- IEnumerator<IPath>
An enumerator that can be used to iterate through the collection.
Transform(Matrix4x4)
Transforms the path using the specified matrix.
public IPathCollection Transform(Matrix4x4 matrix)
Parameters
matrixMatrix4x4The matrix.
Returns
- IPathCollection
A new path collection with the matrix applied to it.