示例#1
0
        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);
        }
示例#2
0
文件: Form1.cs 项目: JKVX/J-Gzimo
 private void 新建ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     gsystem = new GizmoSystem();
     this.pictureBox1.Image = drawBoard.drawBaseMap();
 }