// Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. using System; using System.Buffers; using System.Numerics; using SixLabors.Shapes; namespace SixLabors.ImageSharp.Drawing { /// /// A mapping between a and a region. /// internal class ShapePath : ShapeRegion { /// /// Initializes a new instance of the class. /// /// The shape. /// The pen to apply to the shape. // SixLabors.shape willbe moving to a Span/ReadOnlySpan based API shortly use ToArray for now. public ShapePath(IPath shape, Pens.IPen pen) : base(shape.GenerateOutline(pen.StrokeWidth, pen.StrokePattern.ToArray())) { } } }