tags:

views:

37

answers:

0

Hi, I have c# app, that has a callback method, and the only parameter this method has is an IntPtr that is a pointer to a BITMAPINFOHEADER Structure. I need to convert it to a BitmapSource object to use with WPF.

Using Marshal.Read* I can know its width and height etc... but I don't know how to generate a BitmapSource...

Anyone knows how to do that?