Class VectorUtils
Provides helper methods dealing with vector graphics
Inheritance
System.Object
VectorUtils
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Geometry
Assembly: NFX.dll
Syntax
public static class VectorUtils
Methods
InflateBalloon(ref Rectangle, ref Point, Int32)
Inflates balloon body and target point
Declaration
public static void InflateBalloon(ref Rectangle body, ref Point target, int delta)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | body | |
System.Drawing.Point | target | |
System.Int32 | delta |
InflateBalloon(ref Rectangle, ref Point, Int32, Int32)
Inflates balloon body and target point
Declaration
public static void InflateBalloon(ref Rectangle body, ref Point target, int deltaBody, int deltaTarget)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | body | |
System.Drawing.Point | target | |
System.Int32 | deltaBody | |
System.Int32 | deltaTarget |
VectorizeBalloon(Rectangle, Point, Double)
Calculates callout balloon vertexes suitable for curve drawing
Declaration
public static Point[] VectorizeBalloon(Rectangle body, Point target, double legSweep)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | body | Balloon body coordinates |
System.Drawing.Point | target | A point of balloon leg attachment |
System.Double | legSweep | Length of balloon leg attachment breach at balloon body edge, expressed in radians (arc length). A value such as PI/16 yields good results |
Returns
Type | Description |
---|---|
System.Drawing.Point[] | An array of vertex points |