spring like drawing in c#
问题 How to draw the spring like shape using c# drawing class alt text http://img812.imageshack.us/img812/373/spring.jpg 回答1: This is more of a math problem than a C# one. What you want is to derive a Parametric equation for the curve you wish to draw. With that go and fill an array of Point objects with values for the parametric equation on a certain interval with a certain step (the smaller the step the more the final drawing will look like the actual shape). Then you can use g.DrawLines (MSDN: