title: How to save PngImage from clipboard
body: <p>How can i save the pngimage to file copied form AdobeFirewoks(Clipboard) or Photoshop without losing the transparency.</p>
  
  <p>i am using delphi2009. </p>
  
  <p>thank you in advance.</p>
  
  <p>@TLama
  I tried this code but there is no transparency. I don't know also if i do it right. </p>
  
  <pre><code>  png := TPngimage.Create;
    try
      png.LoadFromClipboardFormat(CF_BITMAP,
        Clipboard.GetAsHandle(CF_BITMAP), CF_BITMAP);
      image1.Picture.Assign(png);
    finally
      png.Free;
    end;
  </code></pre>