title: how to get Bitsperpixel from a bitmap
body: <p>I have a 3rd party component which requires me to give it the bitsperpixel from a bitmap.</p>
  
  <p>What's the best way to get "bits per pixel"?</p>
  
  <p>My starting point is the following blank method:-</p>
  
  <pre><code>public int GetBitsPerPixelMethod( system.drawing.bitmap bitmap )
  {
     //return BitsPerPixel;
  }
  </code></pre>