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();
|
请发表评论