Exemplo n.º 1
0
        private void rebuildFromTilesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (rebuildTilesForm == null || !rebuildTilesForm.Visible)
            {
                rebuildTilesForm = new ImageForm
                {
                    Text      = "Rebuild From Tiles",
                    MdiParent = this
                };
            }

            rebuildTilesForm.SetImage(new Bitmap(20 * Model.GridWidth, 12 * Model.GridHeight));
            rebuildTilesForm.Show();

            Exporter.RebuildFromTiles(rebuildTilesForm.SetPixel);

            rebuildTilesForm.Invalidate(true);
            rebuildTilesForm.Update();
        }