PeachDrawing.Core
PeachDrawing.Core.Geometry.PathShapes
PathShapes.AddStar(this GraphicsPath, double, double, double, double, int, double) Method
Adds a star whose first tip points up (toward negative y) before rotation.
public static void AddStar(this PeachDrawing.Core.GraphicsPath path, double centerX, double centerY, double outerRadius, double innerRadius, int points, double rotationRadians=0.0);
Parameters
path GraphicsPath
the path to add to
centerX System.Double
the center’s x-coordinate
centerY System.Double
the center’s y-coordinate
outerRadius System.Double
the distance from the center to each tip
innerRadius System.Double
the distance from the center to each notch between tips
points System.Int32
the number of tips; at least 3
rotationRadians System.Double
clockwise rotation about the center
Exceptions
System.ArgumentOutOfRangeException
points is less than 3