SHARE
TWEET

Untitled

a guest Jun 20th, 2009 265 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. namespace PasteBin
  2. {
  3.     public class ImageConverter : System.Windows.Forms.AxHost
  4.     {
  5.         public ImageConverter()
  6.             : base("59EE46BA-677D-4d20-BF10-8D8067CB8B33")
  7.         {
  8.         }
  9.  
  10.         public static stdole.IPictureDisp ImageToIpicture(System.Drawing.Image image)
  11.         {
  12.             return (stdole.IPictureDisp)GetIPictureDispFromPicture(image);
  13.         }
  14.  
  15.         public static System.Drawing.Image IpictureToImage(stdole.StdPicture picture)
  16.         {
  17.             return GetPictureFromIPicture(picture);
  18.         }
  19.     }
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top