예제 #1
0
        public void brightnessClick()
        {
            double val = Utilities.TriggerFormAndGetResult("Brightness", "Brightness value, range from -255 to 255");

            Bitmap newImage = (Bitmap)model.getMainImage().Clone();

            undoRedo.AddToUndoBuffer(newImage);

            undoRedo.currentRedoCount = 0;

            Filters.Brightness((int)val, model.getMainImage());

            if (channelsOn)
            {
                this.showChannelsClick();
            }
            else
            {
                this.view.ShowImage(model.getMainImage(), model.getImageName());
            }
        }