Stream stream = new MemoryStream(data);
BinaryReader r = new BinaryReader(stream);
int iRawImageWidth = r.ReadInt32();//读取图像的宽度
int iRawImageHeight = r.ReadInt32();//读取图像的高度
Stream stream = new MemoryStream(data);
BinaryReader r = new BinaryReader(stream);
int iRawImageWidth = r.ReadInt32();//读取图像的宽度
int iRawImageHeight = r.ReadInt32();//读取图像的高度
转载于:https://www.cnblogs.com/gaara-zhang/p/9705434.html