// Converts an image into an IPictureDisp.
    public static stdole.IPictureDisp ToIPictureDisp(Image image)
    {
        Bitmap bitmap = (image is Bitmap) ? (Bitmap)image : new Bitmap(image);

        PICTDESC.Bitmap pictBit = new PICTDESC.Bitmap(bitmap);
        return(PictureDispConverter.OleCreatePictureIndirect(pictBit, ref iPictureDispGuid, true));
    }
        public static stdole.IPictureDisp ToIPictureDisp(
            System.Drawing.Bitmap bmp)
        {
            PICTDESC.Bitmap pictBmp = new PICTDESC.Bitmap(bmp);

            return(OleCreatePictureIndirect(pictBmp, ref iPictureDispGuid, true));
        }
 public static stdole.IPictureDisp ToIPictureDisp(System.Drawing.Bitmap bmp)
 {
     PICTDESC.Bitmap pictBmp = new PICTDESC.Bitmap(bmp);
     return OleCreatePictureIndirect(pictBmp, ref iPictureDispGuid, true);
 }
 /// Converts an image into a IPictureDisp
 public static stdole.IPictureDisp ToIPictureDisp(Image image)
 {
     Bitmap bitmap = (image is Bitmap) ? (Bitmap)image : new Bitmap(image);
     PICTDESC.Bitmap pictBit = new PICTDESC.Bitmap(bitmap);
     return PictureDispConverter.OleCreatePictureIndirect(pictBit, ref iPictureDispGuid, true);
 }