Class Clipper
Library to clip polygons.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.PolygonClipper
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public class Clipper
Constructors
| Improve this Doc View SourceClipper()
Initializes a new instance of the Clipper class.
Declaration
public Clipper()
Clipper(ClippablePath[])
Initializes a new instance of the Clipper class.
Declaration
public Clipper(params ClippablePath[] shapes)
Parameters
Type | Name | Description |
---|---|---|
ClippablePath[] | shapes | The shapes. |
Methods
| Improve this Doc View SourceAddPath(IPath, ClippingType)
Adds the path.
Declaration
public void AddPath(IPath path, ClippingType clippingType)
Parameters
Type | Name | Description |
---|---|---|
IPath | path | The path. |
ClippingType | clippingType | The clipping type. |
AddPaths(ClippablePath[])
Adds the paths.
Declaration
public void AddPaths(ClippablePath[] paths)
Parameters
Type | Name | Description |
---|---|---|
ClippablePath[] | paths | The paths. |
AddPaths(IEnumerable<IPath>, ClippingType)
Adds the shapes.
Declaration
public void AddPaths(IEnumerable<IPath> paths, ClippingType clippingType)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IPath> | paths | The paths. |
ClippingType | clippingType | The clipping type. |
GenerateClippedShapes()
Executes the specified clip type.
Declaration
public IPath[] GenerateClippedShapes()
Returns
Type | Description |
---|---|
IPath[] | Returns the IPath array containing the converted polygons. |