private void ZipVal_ValueChanged(object sender, EventArgs e) { int val = ZipVal.Value - 101; dontHandle = false; Value.Text = val.ToString(); iw.setBitmap(prevImg); iw.Brightness(val); }
public Brightness(ImageWindow iw) { InitializeComponent(); this.iw = iw; MdiParent = iw.MdiParent; Text = Text + " " + iw.Text; prevImg = iw.getBitmap(); iw.Brightness(ZipVal.Value - 101); Show(); }