Beispiel #1
0
 /// <summary>
 /// Clips the specified holes.
 /// </summary>
 /// <param name="shape">The shape.</param>
 /// <param name="holes">The holes.</param>
 /// <returns>Returns a new shape with the holes clipped out of the shape.</returns>
 /// <exception cref="ClipperException">Open paths have been disabled.</exception>
 public static IPath Clip(this IPath shape, params IPath[] holes)
 => shape.Clip((IEnumerable <IPath>)holes);
Beispiel #2
0
 private static IPath MakeRounded(IPath path, float rx, float ry)
 {
     return(path.Clip(BuildCorners(path.Bounds.Width, path.Bounds.Height, rx, ry).Translate(path.Bounds.Location)));
 }