RecordSelectionState() public method

public RecordSelectionState ( Bitmap selection, String description ) : void
selection System.Drawing.Bitmap
description String
return void
示例#1
0
 private void ResetControls()
 {
     lstRegions.Items.Clear();
     lastSelectedRegionIndex = -1;
     trackMagnification.Value = 1;
     lblMagnification.Text = "Magnification: 1x";
     imgRegion.Reset();
     region = null;
     dim = Dimension.Overworld;
     overworldToolStripMenuItem.Checked = true;
     netherToolStripMenuItem.Checked = false;
     endToolStripMenuItem.Checked = false;
     if (history != null)
         history.Dispose();
     history = new HistoryManager(HistoryChange);
     history.RecordSelectionState(imgRegion.Layers[SELECTIONLAYER].Image, "Initial State");
 }
示例#2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            menuRedrawTerrainMap.Checked = Settings.RedrawTerrainMap;
            menuBiomeFoliage.Checked = Settings.BiomeFoliage;
            menuTransparency.Checked = Settings.Transparency;
            FillRecentWorldsList();

            RegionUtil.RenderChunkBoundaries(imgRegion.Layers[CHUNKLAYER].Image);

            FillLists();
            ColorPalette.Preload(); //matters to multi-threaded chunk rendering

            history = new HistoryManager(HistoryChange);
            history.RecordSelectionState(imgRegion.Layers[SELECTIONLAYER].Image, "Initial Selection");
        }