private void buttonG2_Click(object sender, EventArgs e) { try { bitmap = new Bitmap(pictureBox.Image); Bitmap editedBitmap = fip.ToGreyscale(bitmap); pictureBox.Image = editedBitmap; this.image = editedBitmap; } catch { toolStripStatusLabel1.Text = "Coś poszło źle..."; } }
public Bitmap GetFIPResults(FIP.FIP fip, Bitmap originalImage) { return(fip.ToGreyscale(originalImage)); }
private void سابياToolStripMenuItem_Click(object sender, EventArgs e) { newBitmap = FIPfilter.ToGreyscale(newBitmap); pictureBox1.Image = newBitmap; }