private void buttonContrast_Click(object sender, EventArgs e) { try { bitmap = new Bitmap(pictureBox.Image); Bitmap editedBitmap = fip.ContrastStretching(bitmap, 0, hScrollBarContrast.Value); pictureBox.Image = editedBitmap; this.image = editedBitmap; } catch { toolStripStatusLabel1.Text = "Coś poszło źle..."; } }
private void ffToolStripMenuItem_Click(object sender, EventArgs e) { newBitmap = FIPfilter.ContrastStretching(newBitmap); pictureBox1.Image = newBitmap; }