点坐标的形式如下:
11.23 31.42
78.12 12.34
12.33 45.36
12.45 45.32
等等,行数很多,也就是数据量有点大,大约7000多行的数据
要求把这些点用c#窗体程序读入,但是在显示的时候不是以txt形式显示的,而是以这些数据坐标组成的点显示出来的.
要用窗体程序控件来写,哪位大侠能够给个具体的实例啊。
11.23 31.42
78.12 12.34
12.33 45.36
12.45 45.32
等等,行数很多,也就是数据量有点大,大约7000多行的数据
要求把这些点用c#窗体程序读入,但是在显示的时候不是以txt形式显示的,而是以这些数据坐标组成的点显示出来的.
要用窗体程序控件来写,哪位大侠能够给个具体的实例啊。
{ bmp = new Bitmap(this.ClientRectangle.Width, this.ClientRectangle.Height); Graphics graphics = Graphics.FromImage(bmp); int i, j; int w = bmp.Width; int h = bmp.Height; int interval = 5;// //每隔5个像素点画设置一个黑颜色点,生成图片。
//
// for (i = 0; i < w; i += interval)
// {
// for (j = 0; j < h; j += interval)
// {
// //使用SetPixel()来设置像素点。
// bmp.SetPixel(i, j, Color.Black);
// }
// }
bmp.SetPixel(33, 55, Color.Black);
bmp.SetPixel(5, 3, Color.Black);
bmp.SetPixel(44, 35, Color.Black);
} private void OnPaint(object sender, PaintEventArgs e)
{
Graphics graphics = e.Graphics; //显示图片 graphics.DrawImage(bmp, new Rectangle(0, 0, this.ClientRectangle.Width, this.ClientRectangle.Height));
}给分吧,亲
就行啦。