public BITMAPINFOHEADER(byte[] data)
{
MemoryStream input = new MemoryStream(data, false);
BinaryReader reader = new BinaryReader(input);
this.biSize = reader.ReadInt32();
this.biWidth = reader.ReadInt32();
this.biHeight = reader.ReadInt32();
this.biPlanes = reader.ReadInt16();
this.biBitCount = reader.ReadInt16();
this.biCompression = reader.ReadInt32();
this.biSizeImage = reader.ReadInt32();
this.biXPelsPerMeter = reader.ReadInt32();
this.biYPelsPerMeter = reader.ReadInt32();
this.biClrUsed = reader.ReadInt32();
this.biClrImportant = reader.ReadInt32();
reader.Close();
}