title: How to convert an image to an icon without losing transparency?
body: <p>I have PNG images which I need to convert to an icon before displaying it.</p>
  
  <p>This is how I did it:</p>
  
  <pre><code>public Icon ImageToIcon(Image imgTest)
  {
      Bitmap bitmap = new Bitmap(imgTest);
      Icon icoTest;
  
      IntPtr iPtr = bitmap.GetHicon();
      icoTest = (Icon) Icon.FromHandle(iPtr).Clone();
  
      return icoTest;
  }
  </code></pre>
  
  <p>I lose transparency after doing this, alpha transparent images are not rendered as expected....can this be solved?</p>