public Bitmap drawFrame(bool whetherStep, GizmoSystem gsystem) { Bitmap b = new System.Drawing.Bitmap(SideLength, SideLength); Graphics g = Graphics.FromImage(b); g.Clear(System.Drawing.Color.White); g.DrawImage(baseMap, new Point(0, 0)); if (whetherStep) { gsystem.stepWorld(); } draw(gsystem.PhysicWorld.MyWorld, g); g.Dispose(); return(b); }
private void 新建ToolStripMenuItem_Click(object sender, EventArgs e) { gsystem = new GizmoSystem(); this.pictureBox1.Image = drawBoard.drawBaseMap(); }