title: c# drawing objects at once instead of using a loop
body: <p>Hello i am trying to draw about 1000 images and between 10 to 100 rectangels and elipses.
  But i need all of them to show up on screen only when they done loading(not in a loading screen but in a game or slideshow). so for example</p>
  
  <pre><code>texturegrass = MyApp.Properties.Resources.Grass
  Rectangle[] rects;
  recs = new Rectangle[1000]
  for (int i = 0; i &lt; rects.Length; i++)
          {
              g.DrawImage(texturegrass,rects[i]);
          }
  </code></pre>
  
  <p>this is what i done so far but every rectangle is been drawn by it own what cause a flickering problam.</p>
  
  <p>I have double bufferd the app.
  I tried using parallel but the application keep crashing</p>
  
  <p>I hope one of you guys can help me...</p>
  
  <hr>
  
  <p>##*</p>