Exemple #1
0
        public void PhotoMat(object sender, EventArgs e)
        {
            Image      img = pibImg.Image;
            Photomaton ph  = new Photomaton(new Bitmap(img));

            for (int i = 0; i < PHOTOMATON_STEPS; i++)
            {
                pibImg.Image = ph.Draw(new Bitmap(img));
                img          = pibImg.Image;
                pibImg.CreateGraphics().DrawImage(img, new Point(0, 0));
            }
        }
Exemple #2
0
        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;*/
            }
        }