I'm trying to load a image at runtime from memory stream. The stream itself is from byte array obtained from C++ DLL of a DICOM image. I'm trying to set the stream to the bitmap object & then load the image to the image control. See code snippet below
I always get the errorNo imaging component suitable to complete this operation was found.
BitmapImage bi = new BitmapImage();
Stream ms = new MemoryStream(abyteArray0);
bi.StreamSource = ms;
img.Source = bi;