I have a System.Drawing.Bitmap currently and I need to convert it into an stdole.StdPicture.
Currently I\'m using:
var pic = (stdole.StdPicture)Microsof
taken from NetOffice http://netoffice.codeplex.com Office Addin Example
public class IconConverter : System.Windows.Forms.AxHost
{
private IconConverter(): base(string.Empty)
{
}
public static stdole.IPictureDisp GetIPictureDispFromImage(System.Drawing.Image image)
{
return (stdole.IPictureDisp)GetIPictureDispFromPicture(image);
}
}