I am creating an EmguCv Image object then retrieving it bytes and trying to create a Bitmap. This is my code
Image<Bgr, byte> myImg = new Image<Bgr, byte>("C:filePathToPng");
byte[] mybytes = myImg.Bytes; //This does NOT work
// byte[] m1bytes = File.ReadAllBytes(@"C:filePathToPng.png"); This does work
using (var stream = new MemoryStream(mybytes))
using (var bitmap = new Bitmap(stream)) //PARAMETER IS NOT VALID HERE
{
....
However I am getting an error that is in the description.
Any suggestions on how to fix this would be great