Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can I rotate a graphicspath to a given angle?

PointF[] points = new PointF[]
{
new PointF(0,10),new PointF(220,10),
new PointF(220,0),new PointF(270,12.5f),
new PointF(220,25),new PointF(220,15),
new PointF(0,15)
};
GraphicsPath path = new GraphicsPath();
for (int i = 0; i < 6; i++)
{
    path.AddLine(points[i], points[i + 1]);
}
path.AddLine(points[6], points[0]);


The path returns an arrow path.
Posted
Updated 5-May-15 15:12pm
v4

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900