I have a piece of hardware saving image data to memory which I would like to retrieve and set as the source to an Image element. I am able to ask the hardware for a DIB handle to the image -- the return value is documented as "a long, which should
be cast to a HBITMAP". How can I do this in WPF?
I'm currently reading up on BitmapSource.Create(), which takes an IntPtr to memory, but I'm not sure it is expecting a DIB or not. Also, the function asks for "stride" which I am unfamiliar with computing. This appears to be the most
promising though, since I can set it straight to an Image.Source parameter.
The hardware I have also has a function to grab a LPPICTUREDISP handle, which is documented as being compatible with the "Picture Object" of Visual Basic and C++. From my reading so far it doesn't sound like this is something that is better
suited for my needs, but I'm not sure.
Thanks for any help
View Complete Post