Ejemplo n.º 1
0
 public unsafe void ReadPixels(Rectangle frame, byte[] bufferToStoreData)
 {
     fixed(byte *ptr = &bufferToStoreData[0])
     GLCore.ReadPixels((int)frame.Left, (int)frame.Top, (int)frame.Width, (int)frame.Height, PixelFormat.Rgb, PixelType.UnsignedByte, (IntPtr)ptr);
 }