WPF BitmapSource and GDI+ Bitmap Interop
Many folks in the forums (most recent post) have been asking how to interop BitmapSources (from WPF) with the Bitmap object that was known in .NET 1.0, 1.1, and 2.0. Being that this has come up in the forums many times, I figured I'd put together a small sample. The sample a WinForm app utilizing the ElementHost from the WinFormsIntegration to host the WPF Image element.
I've put the code here. Enjoy!
Comments
Anonymous comments are disabled
About RWlodarczyk
Robert has been at Microsoft since August 2003. He has worked on WPF Imaging, Media, and Effects, and Windows Vista (in the form of the Windows Imaging Component). He is currently the test lead for the Windows Imaging Component.