• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Drawing
      • ArcLineSegment
      • ClipPathExtensions
      • ClippingOperation
      • ComplexPolygon
      • CubicBezierLineSegment
      • EllipsePolygon
      • EmptyPath
      • EndCapStyle
      • ILineSegment
      • IPath
      • IPathCollection
      • ISimplePath
      • IntersectionRule
      • JointStyle
      • LinearLineSegment
      • OutlinePathExtensions
      • Path
      • PathBuilder
      • PathCollection
      • PathExtensions
      • PathTypes
      • Polygon
      • RectangularPolygon
      • RegularPolygon
      • SegmentInfo
      • Star
      • TextBuilder
    • SixLabors.ImageSharp.Drawing.Processing
      • Brush
      • BrushApplicator<TPixel>
      • Brushes
      • ClearExtensions
      • ClearPathExtensions
      • ClearRectangleExtensions
      • ClipPathExtensions
      • ColorStop
      • DrawBezierExtensions
      • DrawLineExtensions
      • DrawPathCollectionExtensions
      • DrawPathExtensions
      • DrawPolygonExtensions
      • DrawRectangleExtensions
      • DrawTextExtensions
      • DrawingOptions
      • DrawingOptionsDefaultsExtensions
      • EllipticGradientBrush
      • FillExtensions
      • FillPathBuilderExtensions
      • FillPathCollectionExtensions
      • FillPathExtensions
      • FillPolygonExtensions
      • FillRectangleExtensions
      • GradientBrush
      • GradientRepetitionMode
      • ImageBrush
      • LinearGradientBrush
      • PathGradientBrush
      • PatternBrush
      • PatternPen
      • Pen
      • PenOptions
      • Pens
      • RadialGradientBrush
      • RecolorBrush
      • RichTextOptions
      • RichTextRun
      • ShapeGraphicOptionsDefaultsExtensions
      • ShapeOptions
      • SolidBrush
      • SolidPen
    • SixLabors.ImageSharp.Drawing.Processing.Processors.Drawing
      • ClipPathProcessor
      • DrawPathProcessor
      • FillPathProcessor
      • FillProcessor
    • SixLabors.ImageSharp.Drawing.Processing.Processors.Text
      • DrawTextProcessor
    • SixLabors.ImageSharp.Drawing.Shapes.PolygonClipper
      • ClipperException
      • ClippingType

    Class ClipPathExtensions

    Provides extension methods to IPath that allow the clipping of shapes.

    Inheritance
    object
    ClipPathExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SixLabors.ImageSharp.Drawing
    Assembly: SixLabors.ImageSharp.Drawing.dll
    Syntax
    public static class ClipPathExtensions

    Methods

    Clip(IPath, params IPath[])

    Clips the specified subject path with the provided clipping paths.

    Declaration
    public static IPath Clip(this IPath subjectPath, params IPath[] clipPaths)
    Parameters
    Type Name Description
    IPath subjectPath

    The subject path.

    IPath[] clipPaths

    The clipping paths.

    Returns
    Type Description
    IPath

    The clipped IPath.

    Exceptions
    Type Condition
    ClipperException

    Thrown when an error occurred while attempting to clip the polygon.

    Clip(IPath, ShapeOptions, params IPath[])

    Clips the specified subject path with the provided clipping paths.

    Declaration
    public static IPath Clip(this IPath subjectPath, ShapeOptions options, params IPath[] clipPaths)
    Parameters
    Type Name Description
    IPath subjectPath

    The subject path.

    ShapeOptions options

    The shape options.

    IPath[] clipPaths

    The clipping paths.

    Returns
    Type Description
    IPath

    The clipped IPath.

    Exceptions
    Type Condition
    ClipperException

    Thrown when an error occurred while attempting to clip the polygon.

    Clip(IPath, ShapeOptions, IEnumerable<IPath>)

    Clips the specified subject path with the provided clipping paths.

    Declaration
    public static IPath Clip(this IPath subjectPath, ShapeOptions options, IEnumerable<IPath> clipPaths)
    Parameters
    Type Name Description
    IPath subjectPath

    The subject path.

    ShapeOptions options

    The shape options.

    IEnumerable<IPath> clipPaths

    The clipping paths.

    Returns
    Type Description
    IPath

    The clipped IPath.

    Exceptions
    Type Condition
    ClipperException

    Thrown when an error occurred while attempting to clip the polygon.

    Clip(IPath, IEnumerable<IPath>)

    Clips the specified subject path with the provided clipping paths.

    Declaration
    public static IPath Clip(this IPath subjectPath, IEnumerable<IPath> clipPaths)
    Parameters
    Type Name Description
    IPath subjectPath

    The subject path.

    IEnumerable<IPath> clipPaths

    The clipping paths.

    Returns
    Type Description
    IPath

    The clipped IPath.

    Exceptions
    Type Condition
    ClipperException

    Thrown when an error occurred while attempting to clip the polygon.

    In this article
    Back to top Generated by DocFX