LoadPicture, SavePicture, StdPicture support in VB .NET ?? - 10-12-2005 , 02:59 PM
I'm trying to move some VB6 data and algorithms dealing with pictures and
images to VB.NET.
Is there a .NET equivalent of these VB6 commands (LoadPicture, SavePicture)?
I think StdPicture is defined in stdole ... so does that mean that VB.NET
can deal with such objects via Interop? I am writing a VB.NET app that has
to use a COM object that returns a StdPicture.
I am trying to see what's available in .NET VB6 compatibility but I can't
seem to add this library as a reference to my VB.NET project.
Thankful for any help ...
Re: LoadPicture, SavePicture, StdPicture support in VB .NET ?? - 10-13-2005 , 05:54 AM
MarkB <markb (AT) blaisesoftXXX (DOT) com> wrote:
The flat GDI+ API has methods that will turn handle/hpal into GDI+
images - you need to select the method according to the StdPicture type.
I don't know how to go from GDI+ to .NET but I think it is simple
since the .NET graphics are AFAIK based on GDI+.
HTH/ON/remove the slow slimy aniaml from my reply address
Re: LoadPicture, SavePicture, StdPicture support in VB .NET ?? - 10-20-2005 , 10:02 PM
In article <uOy$e81zFHA.2212 (AT) TK2MSFTNGP15 (DOT) phx.gbl>,
markb (AT) blaisesoftXXX (DOT) com says...
Then look at the Microsoft.VisualBasic.Compatibility.VB6.Support class.
It has a few methods that might help you out (i.e. "IPictureToImage" and
If you're just looking to load an image from disk, check out .NET's
Microsoft .NET MVP
|Thread Tools||Search this Thread|