Rectangle[] rects; rects = new Rectangle[10]; Bitmap background; Graphics scG; public Rectangle[] makerect() { Random r = new Random(); for (int i = 0; i < rects.Length; i++) { rects[i] = new Rectangle(r.Next(0,this.Width),r.Next(0,this.Height),10,10); } return rects; } public Bitmap Draw() { scG.FillRectangles(Brushes.Gold, rects); return background; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)