Beispiel #1
0
        public override Figure copy()
        {
            BkgImage newBkgImage = new BkgImage(new Bitmap(img));

            newBkgImage.height = this.height;
            newBkgImage.width  = this.width;
            newBkgImage.updateResolution();
            return(newBkgImage);
        }
Beispiel #2
0
        public override void backToPrevious()
        {
            if (savedStates.Count == 0)
            {
                return;
            }
            BkgImage returnedState = savedStates.Pop();

            //this.selected = returnedState.selected;
            this.height = returnedState.height;
            this.width  = returnedState.width;
            this.img.Dispose();
            this.img = returnedState.img;
            this.updateResolution();
        }