Table of Contents

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, params IPath[])

Clips the specified subject path with the provided clipping paths.

public static IPath Clip(this IPath subjectPath, params IPath[] clipPaths)

Parameters

subjectPath IPath

The subject path.

clipPaths IPath[]

The clipping paths.

Returns

IPath

The clipped IPath.

Clip(IPath, ShapeOptions, params IPath[])

Clips the specified subject path with the provided clipping paths.

public static IPath Clip(this IPath subjectPath, ShapeOptions options, params IPath[] clipPaths)

Parameters

subjectPath IPath

The subject path.

options ShapeOptions

The shape options.

clipPaths IPath[]

The clipping paths.

Returns

IPath

The clipped IPath.

Clip(IPath, ShapeOptions, IEnumerable<IPath>)

Clips the specified subject path with the provided clipping paths.

public static IPath Clip(this IPath subjectPath, ShapeOptions options, IEnumerable<IPath> clipPaths)

Parameters

subjectPath IPath

The subject path.

options ShapeOptions

The shape options.

clipPaths IEnumerable<IPath>

The clipping paths.

Returns

IPath

The clipped IPath.

Clip(IPath, IEnumerable<IPath>)

Clips the specified subject path with the provided clipping paths.

public static IPath Clip(this IPath subjectPath, IEnumerable<IPath> clipPaths)

Parameters

subjectPath IPath

The subject path.

clipPaths IEnumerable<IPath>

The clipping paths.

Returns

IPath

The clipped IPath.