07-13-2008 10:10 AM
07-14-2008 06:16 PM
Hi HaD,
I think it would be helpful if we could have a little more information about what it is you have. For example what environment you are in. Where is the image data coming from?
07-15-2008 03:03 AM
MyPictureBox.Image = Image.FromHbitmap(m.LParam)
I tried the .NET "Image.FromHbitmap" in Labview but i got some unexplained error.
So i want to do that in conventional way, with VI or DLL that will convert the GDI Handle (m.Lparam) to pixels that i can process.
Tnx,
HaD
07-15-2008 06:32 AM
Hi HaD,
if you use the advapi32.dll you can send messages to copy the image into the clipboard. Later you can read your picture from the clipboard and work with it in LabView.
If you use another way, you can use the "GetDIBits" function to get the size of the image and the "GetBitmapBits" function to get the real image. Both function are in the GDI32.dll.
Hope it helps.
Mike
07-15-2008 07:49 AM
07-15-2008 10:25 AM
03-18-2010 10:17 AM
Hi Mike-
I've got a handle to a device dependent bitmap (converted from stdole.picture). I'm not familiar with using the Windows API. Any way to display the image referenced by HBITMAP (DDB type) in the LabVIEW picture control? Could you post an example subVI that does the conversion? *thanks*
04-21-2010 02:25 PM
Mike-
If you're like some of the others, you might cross over to Zealout before your 5000th post (either something with the new system or we can only see your cached post count). So, congratulations in advance!
Thanks for any ideas, resources, etc. (Again, I'm not familiar with the Windows API.)