Does anyone know how to create a BitmapImage from an image? Here is the code I'm working with:
MemoryStream memStream = new MemoryStream(bytes); Image img = Image.FromStream(memStream);
Now I have access to this image in memory. The thing is, I need to convert it to the BitmapImage type in order to use it in my solution.
NOTE. I need to convert it to a BitmapImage type, not a Bitmap type. I could not figure it out because the BitmapImage type accepts a Uri constructor for it.
source share