protected override long Load(Stream stream)
{
base.Load(stream);
byte[] temp = stream.ReadBytes(HeaderSize);
if (!CheckIdentifier(temp))
throw new FormatException("Stream is not a BMP Image");
DataSectionLength = BitConverter.ToInt16(temp, 4);
Identifier = BitConverter.ToString(temp, 6, 5);
Version = temp[11] + ".0" + temp[12];
ResolutionUnits = (UnitsType)temp[13];
HorizontalResolution = MyBitConverter.ToInt16(temp, 14, MyBitConverter.Endianness.BigEndian);
VerticalResolution = MyBitConverter.ToInt16(temp, 16, MyBitConverter.Endianness.BigEndian);
XThumbnailPixelCount = temp[18];
YThumbnailPixelCount = temp[19];
return HeaderSize;
}