private void button4_Click(object sender, EventArgs e) { if (bmp == null) { return; } BitMapProcessor b = new BitMapProcessor(); var a = b.GetPixels(bmp); a = b.GammaCorrection(a, (float)trackBar1.Value / 10); bmp = b.GetBitmap(a); pictureBox1.Image = bmp; }
private void button7_Click(object sender, EventArgs e) { if (bmp == null) { return; } BitMapProcessor b = new BitMapProcessor(); var a = b.GetPixels(bmp); a = b.Spreading(a); bmp = b.GetBitmap(a); pictureBox1.Image = bmp; }
private void button14_Click(object sender, EventArgs e) { if (bmp == null) { return; } BitMapProcessor b = new BitMapProcessor(); var a = b.GetPixels(bmp); a = b.Noise(a, trackBar3.Value); bmp = b.GetBitmap(a); pictureBox1.Image = bmp; }