C#绘制抛物线
C# 抛物线
public partial class Form1 : Form
{
Bitmap oriBmp = null;
Bitmap oriBmp1 = null;
Bitmap bufferBmp = null;
double a, b, c;
float xx, yy;
public Form1()
{
InitializeComponent();
}
//绘制坐标系
private void Form1_Load(object sender, EventArgs e)
{
pictureBox1.Image = new Bitmap(400, 400);
Graphics g = Graphics .FromImage (pictureBox1.Image );
g.Clear(Color.White);
Pen blackPen = new Pen(Color.Black, 1);
g.TranslateTransform(200, 200);