I'm trying to use the method SetSource in my converter to convert a byte array to BitmapImage, but unfortunately the method looks gone.
I checked the documentation and the method is still in use. Link: https://learn.microsoft.com/en-us/previous-versions/cc189859(v=vs.95)
Any Ideas ?
public static BitmapImage ConvertByteArrayToBitMapImage(byte[] imageByteArray)
{
BitmapImage img = new BitmapImage();
using (MemoryStream memStream = new MemoryStream(imageByteArray))
{
img.SetSource(memStream);
}
return img;
}