title: How do I fill a bitmap with a solid color?
body: <p>I need to create a 24-bit bitmap (resolution 100x100 pixels) using a unique RGB color and save the generated image to the disk. I currently use the <a href="http://msdn.microsoft.com/en-us/library/6c7eyzyb.aspx" rel="noreferrer"><code>SetPixel</code></a> function, but it is extremely slow.</p>
  
  <pre><code>Bitmap Bmp = new Bitmap(width, height);
  //...
  //...
  Bmp.SetPixel(x,y,Color.FromARGB(redvalue, greenvalue, bluevalue));
  </code></pre>
  
  <p>Is there a faster method than <code>SetPixel</code>? Thanks in advance.</p>