Beispiel #1
0
 /// <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());
 }
Beispiel #2
0
 /// <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())
 {
 }