private void UpdateCanvas() { Bitmap dstImage = new Bitmap(srcImage.Width, srcImage.Height); Adjustment a = new Adjustment(); dstImage = a.GammaCorrect((Bitmap)srcImage.Clone(), this.Degree); this.panel1.BackgroundImage = dstImage; this.FinalImage = (Bitmap)dstImage.Clone(); }