// Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. using SixLabors.ImageSharp.Processing; using SixLabors.Shapes; namespace SixLabors.ImageSharp.Primitives { /// /// 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. public ShapePath(IPath shape, IPen pen) : base(shape.GenerateOutline(pen.StrokeWidth, pen.StrokePattern)) { } } }