title: C# Custom color turning black
body: <p>I've never used System.Drawing before so bear with me as this is a mich-mach of code I've found and put together.</p>
  
  <p>I'm trying to create an image with a top portion white and bottom portion another color (eventually adding images into it) </p>
  
  <p>my code: </p>
  
  <pre><code>        Bitmap bmp = new Bitmap(800, 800, PixelFormat.Format32bppArgb);
          using (Graphics gfx = Graphics.FromImage((Image)bmp))
          {
              gfx.FillRectangle(Brushes.Transparent, new RectangleF(0, 0, bmp.Width, bmp.Height));
              gfx.FillRectangle(Brushes.White, 0, 0, 800, 600);
              gfx.FillRectangle(new SolidBrush(Color.FromArgb(21, 93, 127)), 600, 800, 0, 800);
          }
          bmp.Save("C:\test.jpg", ImageFormat.Bmp);
  </code></pre>
  
  <p>However my results are top white, bottom black... not sure what I'm doing wrong.</p>
  
  <p>I've also tried <code>gfx.FillRectangle(new SolidBrush(System.Drawing.ColorTranslator.FromHtml("#155d7f")), 600, 800, 0, 800);</code></p>