private void filtercolor_Click(object sender, EventArgs e) {//Color Correction ColorInput dlg = new ColorInput(); dlg.red = dlg.green = dlg.blue = 0; if (DialogResult.OK == dlg.ShowDialog()) { if (BitmapFilter.Color(image, dlg.red, dlg.green, dlg.blue)) { this.Invalidate(); } } }