//int i = image.Columns;
//int j = image.Rows;
//int m = i * j * 2;
//FileStream fs2 = new FileStream(@"E:\2222.txt", FileMode.Create, FileAccess.Write, FileShare.None);
//fixed (byte* pSrcPixelData1 = image.PixelData.Raw)
//{
// byte[] farr = new byte[m];
// for (int kk = 0; kk < m; kk++)
// {
// farr[kk] = pSrcPixelData1[kk];
// }
// fs2.Write(farr, 0, m);
//}
//fs2.Close();
C# byte写成文件
最新推荐文章于 2024-05-08 11:25:55 发布