/// <summary> /// Initializes a new instance of the <see cref="ShapePath"/> class. /// </summary> /// <param name="path">The path.</param> public ShapePath(IPath path) : this(ImmutableArray.Create(path)) { this.shape = path.AsShape(); this.Bounds = RectangleF.Ceiling(path.Bounds.Convert()); }
/// <summary> /// Initializes a new instance of the <see cref="ShapeRegion"/> class. /// </summary> /// <param name="path">The path.</param> public ShapeRegion(IPath path) : this(path.AsShape()) { }