Ejemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            Random R   = new Random();
            int    W   = (int)numericUpDown1.Value;
            int    H   = (int)numericUpDown2.Value;
            Bitmap cur = new Bitmap(W, H);

            for (int i = 0; i < (int)numericUpDown3.Value; i++)
            {
                cur = cur.AddToTopRandom(items[R.Next(items.Count - 1)]);
            }
            pictureBox1.Image = cur;
        }