I use a IP camera and its library to get the image from the camera.
The library allows me to get the byte array or a bitmap. I wish to display the video in my Xaml window. I need something fast and I do not know how to do it.
Currently I use a Image widget and I convert my bitmap to a Bitmap Source :
VideoWidget.Source = Imaging.CreateBitmapSourceFromHBitmap(camera.StreamUpdate().GetHbitmap(), IntPtr.Zero, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions());
It works but I think I can do something faster if I can update the bytes[] directly. Is there a way to do this ?
Thank you :)