示例#1
0
        private void ribbonButton30_Click(object sender, EventArgs e)
        {
            if (undoHelper.CanRedo)
            {
                undoHelper.Redo();

                mainForm.SetLensParams();
                mainForm.SetFilmParams();
                mainForm.SetAtmosphereParams();
                mainForm.SetGammaParams();
                mainForm.SetGainParams();
                mainForm.SetOffsetParams();
                mainForm.SetEnhanceParams();
                mainForm.SetEnhance2Params();

                mainForm.FilterEffects();

                ////GB
                //Program.Filter.Do((Bitmap)Program.Destination.Image);

                //Image temp = Program.Destination.Image;
                //Program.Destination.Image = Program.Effects.Do((Bitmap)Program.Source.Image);

                //if (temp != null)
                //    temp.Dispose();

                //WaterMark wm = new WaterMark(mainForm.WaterMarkText, mainForm.TextAlign, mainForm.WaterMarkFont, mainForm.WaterMarkImage, mainForm.ImageAlign);

                //temp = Program.Destination.Image;
                //Program.Destination.Image = (Bitmap)wm.MarkImage(Program.Destination.Image);

                //if (temp != null)
                //    temp.Dispose();
            }
        }