Draw lines in a circle - question for the real pro!

Feb 5 2008 5:23 AM

Hi, I would like to draw line from one point on a circle to another point on the circle. I tried the following using PathData, but only get 13 points - not enough. I would like to divide the circle into 360 degrees and be able to draw a line from any degree to any degree. Thanks for any help!!!!

private void Form1_Paint(object sender, PaintEventArgs e)

{

Graphics g = this.CreateGraphics();

GraphicsPath path = new GraphicsPath();

path.AddEllipse(200, 200, 100, 100);

g.DrawPath(new Pen(Brushes.AliceBlue), path);

PathData pd = path.PathData;

}

 


Answers (1)