Table of Contents

Class PathCollection

Namespace
SixLabors.ImageSharp.Drawing
Assembly
SixLabors.ImageSharp.Drawing.dll

An 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

paths IPath[]

The collection of paths.

PathCollection(IEnumerable<IPath>)

Initializes a new instance of the PathCollection class.

public PathCollection(IEnumerable<IPath> paths)

Parameters

paths IEnumerable<IPath>

The collection of paths.

Properties

Bounds

Gets the bounds enclosing all paths in the collection.

public RectangleF Bounds { get; }

Property Value

RectangleF

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 all paths in the collection using the specified matrix.

public IPathCollection Transform(Matrix4x4 matrix)

Parameters

matrix Matrix4x4

The transformation matrix.

Returns

IPathCollection

A new path collection with the matrix applied to it.

See Also