WPF BitmapSource and GDI+ Bitmap Interop

Published 03 January 07 12:34 PM | RWlodarczyk 

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!

Filed under: ,

Comments

# WPF BitmapSource and GDI+ Bitmap Interop said on November 27, 2007 11:37 AM:

PingBack from http://feeds.maxblog.eu/item_1328418.html

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.
Page view tracker