BitmapData bitmapData = bitmap.LockBits(new Rectangle(0, 0, bitmap.Width, bitmap.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); int stride = bitmapData.Stride; IntPtr iptr = bitmapData.Scan0; int DataBytes = stride * bitmap.Height; byte[] Data = new byte[DataBytes]; Marshal.Copy(iptr, Data, 0, DataBytes); bitmap.UnlockBits(bitmapData);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)