Bitmap class in WPF
I'm working with Emgu Cv in Winforms to do face recognition using Kinect. Now, i want to move to WPF. However, the EmguCv library support only Bitmap class. Can i use the Bitmap class (used in Winforms) in WPF ? if not, is there an other method to use Emgu cv with kinect in WPF? Thanks. Paolo Moretti System.Drawing.Bitmap can not be used directly as image source for WPF, so you have to convert it to System.Windows.Media.Imaging.BitmapSource . The best way to do it is by using Imaging.CreateBitmapSourceFromHBitmap . You can use an extension method: [DllImport("gdi32")] private static extern int