title: How would I draw a PNG image using LoadImage and StretchDIBits?
body: <p>(This is related to the question on <a href="https://stackoverflow.com/questions/4567875/how-would-i-load-a-png-image-using-win32-gdi-no-gdi-if-possible">How would I load a PNG image using Win32/GDI (no GDI+ if possible)?</a>.)</p>
  
  <p>Hi all,</p>
  
  <p>I was wondering, given that you have a PNG resource embedded in a binary file with the ID <code>IDB_PNG1</code>, and an <code>LPDRAWITEMSTRUCT</code> to draw into (so that means you have the <code>HDC</code> and the rectangle for your target), how do you draw that image onto the screen using <code>StretchDIBits</code>? I've worked with <code>BitBlt</code> and <code>TransparentBlt</code> before, but <code>StretchDIBits</code> seems to work differently, and <code>LoadImage</code> doesn't seem to work with PNG's.</p>
  
  <p>Thank you!</p>
  
  <p>(Note: The language I put is C++, but that's not too important... C, C#, Visual Basic, etc. would be fine; I'm just trying to figure out the steps, not the exact code needed.)</p>