title: How to draw RGB bitmap to window using GDI?
body: <p>I have an image in memory with the following byte layout</p>
  
  <pre><code>blue, green, red, alpha (32 bits per pixel)
  </code></pre>
  
  <p>The alpha is not used.</p>
  
  <p>I want to draw it to a window using GDI. Later I may want to draw only a smaller part of it to the window. But the bitmap in memory is always fixed at a certain width &amp; height.</p>
  
  <p>How can this bitmap drawing operation be done?</p>