title: Convert System.Drawing.Bitmap to stdole.StdPicture
body: <p>I have a System.Drawing.Bitmap currently and I need to convert it into an stdole.StdPicture.<br>
  Currently I'm using: </p>
  
  <pre><code>var pic = (stdole.StdPicture)Microsoft.VisualBasic.Compatibility.VB6.Support.ImageToIPicture
                     (MyDLL.Properties.Resources.Img); // this is a System.Drawing.Bitmap
  </code></pre>
  
  <p>but I get a Compiler Warning:  </p>
  
  <blockquote>
    <p>Warning 'Microsoft.VisualBasic.Compatibility.VB6.Support.ImageToIPicture(System.Drawing.Image)' is obsolete: '"Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. <a href="http://go.microsoft.com/fwlink/?linkid=160862">http://go.microsoft.com/fwlink/?linkid=160862</a></p>
  </blockquote>
  
  <p>So what to use instead? I couldn't find another solution yet...</p>