2
I have an array of bytes like this:
private byte[] m_Frame
I need to turn him into an image, only how I’m in one WPF
it is not possible to simply play a bitmap
within a PictureBox
because that element simply does not exist in the WPF
.
For now, I have this development:
BitmapImage bmpi = new BitmapImage();
bmpi.BeginInit();
bmpi.StreamSource = new MemoryStream(m_Frame);
bmpi.EndInit();
m_picture.Source = bmpi;
Obs: m_picture
is a <Image/>
But when I call the method that this section is inserted the VS
return me a Exception:System.NotSupportedException: 'No imaging component suitable to complete this operation was found.
What I need to do?
When running the img line = System.Drawing.Image.Fromstream(Imagedatastream) this error is returning: System.Argumentexception Parameter is not Valid. You know what it can be?
– Nicolas S.