Welcome to MSDN Blogs Sign in | Join | Help

ImageToIPicture

Converting an Image to an IPicture seems a recurring question. I did not tried the following code but it does compile.

sealed class ImageToIPicture : AxHost {

   private ImageToIPicture() : base(null) {

   }

   static public object Convert(Image image) {

      return AxHost.GetIPictureFromPicture(image);

   }

}

Published Wednesday, June 07, 2006 10:54 AM by yvesdolc

Comments

Anonymous comments are disabled
 
Page view tracker