Class EmptyPath
A path that is always empty.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public sealed class EmptyPath : IPath
Properties
| Edit this page View SourceBounds
Gets the bounds enclosing the path.
Declaration
public RectangleF Bounds { get; }
Property Value
Type | Description |
---|---|
RectangleF |
ClosedPath
Gets the closed path instance of the empty path
Declaration
public static EmptyPath ClosedPath { get; }
Property Value
Type | Description |
---|---|
EmptyPath |
OpenPath
Gets the open path instance of the empty path
Declaration
public static EmptyPath OpenPath { get; }
Property Value
Type | Description |
---|---|
EmptyPath |
PathType
Gets a value indicating whether this instance is closed, open or a composite path with a mixture of open and closed figures.
Declaration
public PathTypes PathType { get; }
Property Value
Type | Description |
---|---|
PathTypes |
Methods
| Edit this page View SourceAsClosedPath()
Returns this path with all figures closed.
Declaration
public IPath AsClosedPath()
Returns
Type | Description |
---|---|
IPath | A new close IPath. |
Flatten()
Converts the IPath into a simple linear path.
Declaration
public 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
public 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. |