private void button3_Click(object sender, EventArgs e) { double value = Convert.ToDouble(textBox1.Text); imageBox2.Image = logic.contrast(sourceImage, value); }