BiomePainter.History.HistoryManager.RecordSelectionState C# (CSharp) Метод

RecordSelectionState() публичный Метод

public RecordSelectionState ( Bitmap selection, String description ) : void
selection System.Drawing.Bitmap
description String
Результат void
        public void RecordSelectionState(Bitmap selection, String description)
        {
            Add(new SelectionAction(new Bitmap(selection), description));
            OnChange();
        }

Usage Example

Пример #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");
 }
All Usage Examples Of BiomePainter.History.HistoryManager::RecordSelectionState