private void button11_Click(object sender, EventArgs e) { if (trackBar2.Value > 255) { imageBox2.Image = logic.Plus(sourceImage, null, trackBar2.Value - 255, 1, 1); } else { imageBox2.Image = logic.Minus(sourceImage, null, trackBar2.Value - 255, 1, 1); } }