Class ClipPathExtensions
Adds extensions that allow the application of processors within a clipped path.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class ClipPathExtensions
Methods
| Edit this page View SourceClip(IImageProcessingContext, IPath, Action<IImageProcessingContext>)
Applies the processing operation within the provided region defined by an IPath.
Declaration
public static IImageProcessingContext Clip(this IImageProcessingContext source, IPath region, Action<IImageProcessingContext> operation)
Parameters
| Type | Name | Description |
|---|---|---|
| IImageProcessingContext | source | The source image processing context. |
| IPath | region | The IPath defining the region to operation within. |
| Action<IImageProcessingContext> | operation | The operation to perform. |
Returns
| Type | Description |
|---|---|
| IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |