Class PathExtensionMethods
Namespace: Aurigma.DesignAtoms.ExtensionMethods
Assembly: Aurigma.DesignAtoms.dll
Syntax
public static class PathExtensionMethods
Inheritance: System.Object -> PathExtensionMethods
Inherited Members
System.Object.ToStringSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.ReferenceEquals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseClone
Methods
ToAdvancedPath
public static Path ToAdvancedPath(this Path sourcePath)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.Path | sourcePath |
Returns
Aurigma.GraphicsMill.AdvancedDrawing.Path
ToGraphicsPath
public static GraphicsPath ToGraphicsPath(this Path path)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.Path | path |
Returns
System.Drawing.Drawing2D.GraphicsPath
GetBounds
public static RectangleF GetBounds(this Path path)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.Path | path |
Returns
System.Drawing.RectangleF
ToModel
public static Path ToModel(this Path advancedPath)
Parameters
| Type | Name | Description |
|---|---|---|
Aurigma.GraphicsMill.AdvancedDrawing.Path | advancedPath |
Returns
Aurigma.DesignAtoms.Model.Math.Path
CreateEllipsePath
public static Path CreateEllipsePath(float x, float y, float width, float height)
Parameters
| Type | Name | Description |
|---|---|---|
System.Single | x | |
System.Single | y | |
System.Single | width | |
System.Single | height |
Returns
Aurigma.DesignAtoms.Model.Math.Path
CreateEllipsePath
public static Path CreateEllipsePath(RectangleF rectangle)
Parameters
| Type | Name | Description |
|---|---|---|
System.Drawing.RectangleF | rectangle |
Returns
Aurigma.DesignAtoms.Model.Math.Path
CalculateBounds
public static RectangleF CalculateBounds(this Path path)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.Path | path |
Returns
System.Drawing.RectangleF
IsRectangular
public static bool IsRectangular(this Path path, double tolerance = 0.01)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.Math.Path | path | |
System.Double | tolerance |
Returns
System.Boolean
IsRectangular
public static bool IsRectangular(this Path path, double tolerance = 0.01)
Parameters
| Type | Name | Description |
|---|---|---|
Aurigma.GraphicsMill.AdvancedDrawing.Path | path | |
System.Double | tolerance |
Returns
System.Boolean
IsIntersectsWithRectangle
public static bool IsIntersectsWithRectangle(this Path path, RectangleF rectangle)
Parameters
| Type | Name | Description |
|---|---|---|
Aurigma.GraphicsMill.AdvancedDrawing.Path | path | |
System.Drawing.RectangleF | rectangle |
Returns
System.Boolean