C#读取raw图片文件
FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read) ; BinaryReader br = new BinaryReader(fs); ushort[] imageData = new ushort[br.BaseStream.Length]; int nRet = int.Parse(br.BaseStream.Length.ToString()); imageData = br.ReadBytes(nRet); fs.Close();
- 上一篇 »读取HTML文件进行格式化解析
- 下一篇 »Python raw_input 读取输入值