Advertisement
Guest User

Untitled

a guest
Jun 20th, 2009
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement