Contact us

Applies to: Customer's Canvas On-Premises; Design Atoms .NET 7.4

Skip to main content

Class PathExtensionMethods

Namespace: Aurigma.DesignAtoms.ExtensionMethods

Assembly: Aurigma.DesignAtoms.dll

Syntax
public static class PathExtensionMethods

Inheritance: System.Object -> PathExtensionMethods

Inherited Members​

  • System.Object.ToString
  • System.Object.Equals(System.Object)
  • System.Object.Equals(System.Object,System.Object)
  • System.Object.ReferenceEquals(System.Object,System.Object)
  • System.Object.GetHashCode
  • System.Object.GetType
  • System.Object.MemberwiseClone

Methods​

ToAdvancedPath​

public static Path ToAdvancedPath(this Path sourcePath)

Parameters​

TypeNameDescription
Aurigma.DesignAtoms.Model.Math.PathsourcePath

Returns​

Aurigma.GraphicsMill.Drawing.Path

ToGraphicsPath​

public static GraphicsPath ToGraphicsPath(this Path path)

Parameters​

TypeNameDescription
Aurigma.DesignAtoms.Model.Math.Pathpath

Returns​

System.Drawing.Drawing2D.GraphicsPath

GetBounds​

public static RectangleF GetBounds(this Path path)

Parameters​

TypeNameDescription
Aurigma.DesignAtoms.Model.Math.Pathpath

Returns​

System.Drawing.RectangleF

ToModel​

public static Path ToModel(this Path advancedPath)

Parameters​

TypeNameDescription
Aurigma.GraphicsMill.Drawing.PathadvancedPath

Returns​

Aurigma.DesignAtoms.Model.Math.Path

CreateEllipsePath​

public static Path CreateEllipsePath(float x, float y, float width, float height)

Parameters​

TypeNameDescription
System.Singlex
System.Singley
System.Singlewidth
System.Singleheight

Returns​

Aurigma.DesignAtoms.Model.Math.Path

CreateEllipsePath​

public static Path CreateEllipsePath(RectangleF rectangle)

Parameters​

TypeNameDescription
System.Drawing.RectangleFrectangle

Returns​

Aurigma.DesignAtoms.Model.Math.Path

CalculateBounds​

public static RectangleF CalculateBounds(this Path path)

Parameters​

TypeNameDescription
Aurigma.DesignAtoms.Model.Math.Pathpath

Returns​

System.Drawing.RectangleF

IsRectangular​

public static bool IsRectangular(this Path path, double tolerance = 0.01)

Parameters​

TypeNameDescription
Aurigma.DesignAtoms.Model.Math.Pathpath
System.Doubletolerance

Returns​

System.Boolean

IsRectangular​

public static bool IsRectangular(this Path path, double tolerance = 0.01)

Parameters​

TypeNameDescription
Aurigma.GraphicsMill.Drawing.Pathpath
System.Doubletolerance

Returns​

System.Boolean

IsIntersectsWithRectangle​

public static bool IsIntersectsWithRectangle(this Path path, RectangleF rectangle)

Parameters​

TypeNameDescription
Aurigma.GraphicsMill.Drawing.Pathpath
System.Drawing.RectangleFrectangle

Returns​

System.Boolean

Was this page helpful?