示例#1
0
文件: Form2.cs 项目: Alsecode/g_e
        public void AddLayer(Bitmap bm)
        {
            Layer newLayer = new Layer(bm);

            layers.Insert(0, newLayer);
            newLayer.SetParent(this);
            newLayer.SetName($"Layer {layers.Count}");
            LayersPanel.Controls.Add(newLayer.panel);
            UpdateLayersPanel();
            CheckUndoRedoButtons();
        }
示例#2
0
文件: Form2.cs 项目: Alsecode/g_e
        //создание и добавление нового слоя
        public void AddLayer()
        {
            Layer newLayer = new Layer(defaultWidth, defaultHeight);

            layers.Insert(0, newLayer);
            newLayer.SetParent(this);
            newLayer.SetName($"Layer {layers.Count}");
            LayersPanel.Controls.Add(newLayer.panel);
            UpdateLayersPanel();
            CheckUndoRedoButtons();
        }