Interface IPath
Represents a logic path that can be drawn.
Namespace: SixLabors.ImageSharp.Drawing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public interface IPath
Properties
| Edit this page View SourceBounds
Gets the bounds enclosing the path.
Declaration
RectangleF Bounds { get; }
Property Value
Type | Description |
---|---|
RectangleF |
PathType
Gets a value indicating whether this instance is closed, open or a composite path with a mixture of open and closed figures.
Declaration
PathTypes PathType { get; }
Property Value
Type | Description |
---|---|
PathTypes |
Methods
| Edit this page View SourceAsClosedPath()
Returns this path with all figures closed.
Declaration
IPath AsClosedPath()
Returns
Type | Description |
---|---|
IPath | A new close IPath. |
Flatten()
Converts the IPath into a simple linear path.
Declaration
IEnumerable<ISimplePath> Flatten()
Returns
Type | Description |
---|---|
IEnumerable<ISimplePath> | Returns the current IPath as simple linear path. |
Transform(Matrix3x2)
Transforms the path using the specified matrix.
Declaration
IPath Transform(Matrix3x2 matrix)
Parameters
Type | Name | Description |
---|---|---|
Matrix3x2 | matrix | The matrix. |
Returns
Type | Description |
---|---|
IPath | A new path with the matrix applied to it. |