title: Why is bmp loading faster than png
body: <p>I have a sample wpf app here and wondering, why BMP is loading faster than PNG. Here is the exact setup: </p>
  
  <pre><code>- Windows 7
  - Visual Studio 2013
  - landscape.png, 1920x1080, 2.4mb
  - landscape.bmp, 1920x1080, 5.6mb
  - wpf-app, class MainWindow.xaml.cs constructor, no other code before
  </code></pre>
  
  <p>Code: </p>
  
  <pre><code>var sw = Stopwatch.StartNew();
  var Bitmap1 = new Bitmap("landscape.bmp");
  long t1 = sw.ElapsedMilliseconds;
  
  sw.Restart();
  var Bitmap2 = new Bitmap("landscape.png");
  long t2 = sw.ElapsedMilliseconds;
  </code></pre>
  
  <p>So the BMP loads with around 6ms, the PNG needs 40ms. </p>
  
  <p>Why is that so?</p>