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;
namespace DrawBezier { public partial class Form1 : Form { public Form1() { InitializeComponent(); MyGraphic = this.CreateGraphics(); }
int LinesCount = 0;
Graphics MyGraphic;
public PointF GetPoint(PointF[] MyPoints double t) { LinesCount++; int PCount = MyPoints.Length; PointF[] MyNewPoints = new PointF[PCount - 1]; double Anothert = 1.0 - t; for (int i = 0; i < PCount - 1; i++) { MyNewPoints[i]
评论
共有 条评论