views:

432

answers:

1

Hello.

Is there a System.Drawing.Image.FromHbitmap equivalent in WPF? Also, is it possible to dispose the handle properly after creating an image?

Thank you.

+3  A: 

Take a look at Imaging.CreateBitmapSourceFromHBitmap in the System.Windows.Interop namespace.

Stu Mackellar