Convert Image to stdole.StdPicture

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

I was looking at the StdPictureClass to see if it could be useful but I
can't seem to find any documentation on it.

The image is drawn dynamically therefore I cannot use OleLoadPictureFile
API.

Thanks,
Joe
 
Joe,

Add a reference to Microsoft.VisualBasic.Compatability.dll (it's in the
framework directory, shipped standard). Once you have that, use the static
ImageToIPicture or ImageToIPictureDisp methods on the Support class in the
Microsoft.VisualBasic.Compatability.VB6 namespace.

Hope this helps.
 
Works perfect! Thanks!

Nicholas Paldino said:
Joe,

Add a reference to Microsoft.VisualBasic.Compatability.dll (it's in the
framework directory, shipped standard). Once you have that, use the
static ImageToIPicture or ImageToIPictureDisp methods on the Support class
in the Microsoft.VisualBasic.Compatability.VB6 namespace.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Joe said:
I was looking at the StdPictureClass to see if it could be useful but I
can't seem to find any documentation on it.

The image is drawn dynamically therefore I cannot use OleLoadPictureFile
API.

Thanks,
Joe
 
Back
Top