title: How to paste a transparent image from the clipboard in a C# winforms app?
body: <p>Note: This question is about pasting from the clipboard, not copying to the clipboard. There are several posts about copying to the clipboard, but couldn't find one that addresses this question.</p>
  
  <p>How can I paste an image with transparency, <a href="http://en.wikipedia.org/wiki/Portable_Network_Graphics" rel="noreferrer">for example this one</a>, into a winforms app and retain transparency?</p>
  
  <p>I have tried using <code>System.Windows.Forms.GetImage()</code>, but that produces a bitmap with a black background.</p>
  
  <p>I am copying this image from Google Chrome, which supports several clipboard formats, including <code>DeviceIndependentBitmap</code> and <code>Format17</code>.</p>