using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace zhengxianxian
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
double distance = 200.0;
System.Drawing.Graphics g = Graphics.FromHwnd(this.Handle);
g.Clear(this.BackColor);
Pen pn = new Pen(Color.Green, 2);
int maxY = this.Height;//获取窗体的高
int maxX = this.Width;//获取窗体的宽
double n = 2.0 * Math.PI / 200.0;
int lmin = 0;
int rmax = 200;
int count = rmax - lmin;
PointF[] mypoint = new PointF[count + 1];
int x = 0;
for (int i = lmin; i <= rmax; i++)
{