• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Drawing
      • ArcLineSegment
      • ClipPathExtensions
      • ClippingOperation
      • ComplexPolygon
      • CubicBezierLineSegment
      • EllipsePolygon
      • EmptyPath
      • EndCapStyle
      • ILineSegment
      • IPath
      • IPathCollection
      • ISimplePath
      • IntersectionRule
      • JointStyle
      • LinearLineSegment
      • OutlinePathExtensions
      • Path
      • PathBuilder
      • PathCollection
      • PathExtensions
      • PathTypes
      • Polygon
      • RectangularPolygon
      • RegularPolygon
      • SegmentInfo
      • Star
      • TextBuilder
    • SixLabors.ImageSharp.Drawing.Processing
      • Brush
      • BrushApplicator<TPixel>
      • Brushes
      • ClearExtensions
      • ClearPathExtensions
      • ClearRectangleExtensions
      • ClipPathExtensions
      • ColorStop
      • DrawBezierExtensions
      • DrawLineExtensions
      • DrawPathCollectionExtensions
      • DrawPathExtensions
      • DrawPolygonExtensions
      • DrawRectangleExtensions
      • DrawTextExtensions
      • DrawingOptions
      • DrawingOptionsDefaultsExtensions
      • EllipticGradientBrush
      • FillExtensions
      • FillPathBuilderExtensions
      • FillPathCollectionExtensions
      • FillPathExtensions
      • FillPolygonExtensions
      • FillRectangleExtensions
      • GradientBrush
      • GradientRepetitionMode
      • ImageBrush
      • LinearGradientBrush
      • PathGradientBrush
      • PatternBrush
      • PatternPen
      • Pen
      • PenOptions
      • Pens
      • RadialGradientBrush
      • RecolorBrush
      • RichTextOptions
      • RichTextRun
      • ShapeGraphicOptionsDefaultsExtensions
      • ShapeOptions
      • SolidBrush
      • SolidPen
    • SixLabors.ImageSharp.Drawing.Processing.Processors.Drawing
      • ClipPathProcessor
      • DrawPathProcessor
      • FillPathProcessor
      • FillProcessor
    • SixLabors.ImageSharp.Drawing.Processing.Processors.Text
      • DrawTextProcessor
    • SixLabors.ImageSharp.Drawing.Shapes.PolygonClipper
      • ClipperException
      • ClippingType

    Class PathCollection

    A aggregate of IPaths to apply common operations to them.

    Inheritance
    object
    PathCollection
    Implements
    IPathCollection
    IEnumerable<IPath>
    IEnumerable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SixLabors.ImageSharp.Drawing
    Assembly: SixLabors.ImageSharp.Drawing.dll
    Syntax
    public class PathCollection : IPathCollection, IEnumerable<IPath>, IEnumerable

    Constructors

    PathCollection(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

    Bounds

    Gets the bounds enclosing the path

    Declaration
    public RectangleF Bounds { get; }
    Property Value
    Type Description
    RectangleF

    Methods

    GetEnumerator()

    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.

    Implements

    IPathCollection
    IEnumerable<T>
    IEnumerable

    Extension Methods

    PathExtensions.Rotate(IPathCollection, float)
    PathExtensions.RotateDegree(IPathCollection, float)
    PathExtensions.Scale(IPathCollection, float)
    PathExtensions.Scale(IPathCollection, float, float)
    PathExtensions.Translate(IPathCollection, PointF)
    PathExtensions.Translate(IPathCollection, float, float)

    See Also

    IPath
    In this article
    Back to top Generated by DocFX