Class ClipPathExtensions
- Namespace
- SixLabors.ImageSharp.Drawing
- Assembly
- SixLabors.ImageSharp.Drawing.dll
Provides extension methods to IPath that allow the clipping of shapes.
public static class ClipPathExtensions
- Inheritance
-
ClipPathExtensions
- Inherited Members
Methods
Clip(IPath, BooleanOperation, params IPath[])
Clips the specified subject path with the provided clipping paths using NonZero.
public static IPath Clip(this IPath subjectPath, BooleanOperation operation, params IPath[] clipPaths)
Parameters
subjectPathIPathThe subject path.
operationBooleanOperationThe boolean operation to perform.
clipPathsIPath[]The clipping paths.
Returns
Clip(IPath, BooleanOperation, IntersectionRule, params IPath[])
Clips the specified subject path with the provided clipping paths.
public static IPath Clip(this IPath subjectPath, BooleanOperation operation, IntersectionRule intersectionRule, params IPath[] clipPaths)
Parameters
subjectPathIPathThe subject path.
operationBooleanOperationThe boolean operation to perform.
intersectionRuleIntersectionRuleThe fill rule used to interpret the subject and clipping paths.
clipPathsIPath[]The clipping paths.
Returns
Clip(IPath, BooleanOperation, IntersectionRule, IEnumerable<IPath>)
Clips the specified subject path with the provided clipping paths.
public static IPath Clip(this IPath subjectPath, BooleanOperation operation, IntersectionRule intersectionRule, IEnumerable<IPath> clipPaths)
Parameters
subjectPathIPathThe subject path.
operationBooleanOperationThe boolean operation to perform.
intersectionRuleIntersectionRuleThe fill rule used to interpret the subject and clipping paths.
clipPathsIEnumerable<IPath>The clipping paths.
Returns
Clip(IPath, BooleanOperation, IEnumerable<IPath>)
Clips the specified subject path with the provided clipping paths using NonZero.
public static IPath Clip(this IPath subjectPath, BooleanOperation operation, IEnumerable<IPath> clipPaths)
Parameters
subjectPathIPathThe subject path.
operationBooleanOperationThe boolean operation to perform.
clipPathsIEnumerable<IPath>The clipping paths.
Returns
Clip(IPath, params IPath[])
Clips the specified subject path with the provided clipping paths using Intersection and NonZero.
public static IPath Clip(this IPath subjectPath, params IPath[] clipPaths)
Parameters
Returns
Clip(IPath, IEnumerable<IPath>)
Clips the specified subject path with the provided clipping paths using Intersection and NonZero.
public static IPath Clip(this IPath subjectPath, IEnumerable<IPath> clipPaths)
Parameters
subjectPathIPathThe subject path.
clipPathsIEnumerable<IPath>The clipping paths.