Freigeben über


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