private void boulangerToolStripMenuItem_Click(object sender, EventArgs e) { Image img = pibImg.Image; Boulanger Boouboul = new Boulanger(new Bitmap(img)); for (int i = 0; i < BOULANGER_STEPS; i++) { pibImg.CreateGraphics().DrawImage(Boouboul.Draw(new Bitmap(img)), new Point(0, 0)); img = Boouboul.img; } }
private void couplageToolStripMenuItem_Click(object sender, EventArgs e) { Image img = pibImg.Image; Photomaton ph = new Photomaton(new Bitmap(img)); Boulanger Boouboul = new Boulanger(new Bitmap(img)); for (int i = 0; i < COUPLAGE_STEPS; i++) { img = ph.Draw(new Bitmap(img)); img = Boouboul.Draw(new Bitmap(img)); pibImg.CreateGraphics().DrawImage(new Bitmap(img), new Point(0, 0)); img = Boouboul.img; /*pibImg.CreateGraphics().DrawImage(new Bitmap(img), new Point(0, 0)); * pibImg.Image = img;*/ } }