Class ClipPathExtensions
Path extensions to clip paths.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class ClipPathExtensions
Methods
| Improve this Doc View SourceClip(IPath, IPath[])
Clips the specified holes.
Declaration
public static IPath Clip(this IPath shape, params IPath[] holes)
Parameters
| Type | Name | Description |
|---|---|---|
| IPath | shape | The shape. |
| IPath[] | holes | The holes. |
Returns
| Type | Description |
|---|---|
| IPath | Returns a new shape with the holes clipped out of the shape. |
Clip(IPath, IEnumerable<IPath>)
Clips the specified holes.
Declaration
public static IPath Clip(this IPath shape, IEnumerable<IPath> holes)
Parameters
| Type | Name | Description |
|---|---|---|
| IPath | shape | The shape. |
| IEnumerable<IPath> | holes | The holes. |
Returns
| Type | Description |
|---|---|
| IPath | Returns a new shape with the holes clipped out of the shape. |