using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;//QQ223857666勾月guocan@msn.cnnamespace SPLINE{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Paint(object sender, PaintEventArgs e) { Point[] points = { new Point(60, 60), new Point(150, 80), new Point(200, 40), new Point(180, 120), new Point(120, 100), new Point(80, 160)}; Pen pen = new Pen(Color.FromArgb(255, 0, 0, 255)); e.Graphics.DrawClosedCurve(pen, points); } }}
评论