摘要:
// 性能最高,其数组和像素一一对应 public static byte[] GetImgByte(this Bitmap bmp) { BitmapData bitmapData = bmp.LockBits(new System.Drawing.Rectangle(new Point(0, 0), bmp.Size), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb); byte[] res = new byte[bitmapData.Stride * bitmapData.Height]; IntPtr Ptr = bitmap. 阅读全文