private void SelectMonster(object sender, EventArgs e) { Bitmap bt = ProcessHandler.GetWindowImg(); Bitmap bbt = bt.Clone(Consts.MONSTER_RECT, bt.PixelFormat); //string path = System.Windows.Forms.Application.StartupPath; //Bitmap bt1 = bt.Clone(Consts.OBJECT_RECT, bt.PixelFormat); //bt1.Save(path + "/1.bmp", System.Drawing.Imaging.ImageFormat.Bmp); bot.SetBit(bbt); bot.cfg.monSelect = true; UpdateImg(bbt); bt.Dispose(); }