title: How to read a bitmap from the Windows Clipboard
body: <p>I am writing an extremely small C++ program to help me animate sprites.  I'd like it to take data I copy to the clipboard from photoshop, manipulate it in my program, then overwrite the clipboard with the transform.  </p>
  
  <p>The problem though is that I'm not sure how to read the initial clipboard from photoshop.</p>
  
  <p>I can load the clipboard with <code>GetClipboardData(CF_DIB)</code>, and get a valid handle, but I've no idea how to use that handle.  I've tried using SFML's <code>Image::LoadFromMemory(handle, GlobalSize(handle))</code> which is able to load bitmap files from memory, but that doesn't seem to work.  </p>
  
  <p>Will I need to actually parse the entire format?  What format structure would I be looking at in that case?  Would there perhaps be any way I could quickly mangle the data so it might look like a bitmap file?  Could it be easier/possible to simply save it to file using the windows API?  (I could then load that file with SFML to edit, that way) </p>
  
  <p>It's just a quick and dirty tool for myself to save a lot of grunt work in photoshop, so efficiency or robustness aren't important at all.</p>