private void btnGamma_Click(object sender, EventArgs e) { TrackBar trackGamma = new TrackBar(); trackGamma.Minimum = 2; trackGamma.Maximum = 50; trackGamma.Width = 300; trackGamma.Scroll += trackGamma_Scroll; Njit.Common.Popup.Popup popupGamma = new Common.Popup.Popup(trackGamma, true, true, true, true, Common.Popup.PopupAnimations.Blend, 100, Common.Popup.PopupAnimations.Blend, 100); popupGamma.Closed += gammaPopup_Closed; popupGamma.Show(System.Windows.Forms.Cursor.Position); }
private void btnContrast_Click(object sender, EventArgs e) { if (this.imageBox.Image != null) { Njit.Program.Controls.SetBrightness setBrightness = new Njit.Program.Controls.SetBrightness(); setBrightness.Minimum = -100; setBrightness.Maximum = 100; setBrightness.Value = this.Contrast; //trackContrast.Width = 300; setBrightness.ValueChanged += trackContrast_ValueChanged; setBrightness.Reset += trackContrast_Reset; Njit.Common.Popup.Popup popupContrast = new Common.Popup.Popup(setBrightness, true, true, true, true, Common.Popup.PopupAnimations.Blend, 100, Common.Popup.PopupAnimations.Blend, 300); popupContrast.Closed += contrastPopup_Closed; popupContrast.Show(System.Windows.Forms.Cursor.Position); } }
private void btnBrightness_Click(object sender, EventArgs e) { if (this.imageBox.Image != null) { Njit.Program.Controls.SetBrightness trackBarBrightness = new Njit.Program.Controls.SetBrightness(); trackBarBrightness.Minimum = -255; trackBarBrightness.Maximum = 255; trackBarBrightness.Value = this.Brightness; //trackBarBrightness.Width = 300; trackBarBrightness.ValueChanged += trackBarBrightness_ValueChanged; trackBarBrightness.Reset += trackBarBrightness_Reset; Njit.Common.Popup.Popup popupBrightness = new Common.Popup.Popup(trackBarBrightness, true, true, true, true, Common.Popup.PopupAnimations.Blend, 100, Common.Popup.PopupAnimations.Blend, 100); popupBrightness.Closed += brightnessPopup_Closed; popupBrightness.Show(System.Windows.Forms.Cursor.Position); } }