ImageSharp/ImageSharp.Drawing/IPathCollection.cs
2026-08-03 22:31:27 +02:00

26 lines
766 B
C#

// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
using System.Collections.Generic;
using System.Numerics;
namespace SixLabors.ImageSharp.Drawing {
/// <summary>
/// Represents a logic path that can be drawn
/// </summary>
public interface IPathCollection : IEnumerable<IPath>
{
/// <summary>
/// Gets the bounds enclosing the path
/// </summary>
public RectangleF Bounds { get; }
/// <summary>
/// Transforms the path using the specified matrix.
/// </summary>
/// <param name="matrix">The matrix.</param>
/// <returns>A new path collection with the matrix applied to it.</returns>
public IPathCollection Transform(Matrix4x4 matrix);
}
}