首页 > 电脑

C#取bmp像素数据,类型GL_UNSIGNED_BYTE,储存内存中,用objectX;提取谁会

更新时间2018-03-06 21:38:20

  操作如下:  Bitmap _Bitmap = (Bitmap)Image.FromFile(@"c:1.BMP");            BitmapData _BitmapData = _Bitmap.LockBits(new Rectangle(0, 0, _Bitmap.Width, _Bitmap.Height), ImageLockMode.ReadWrite, _Bitmap.PixelFormat);            byte[] _Value = new byte[_BitmapData.Stride * _BitmapData.Height];            Marshal.Copy(_BitmapData.Scan0, _Value, 0, _Value.Length);写回去还是用 Marshal.Copy.

相关标签:内存

上一篇:github的源文件有什么用

下一篇:请写出ADO.NET中,应用程序对数据库新增操作的步骤