// // Copyright (c) James Jackson-South and contributors. // Licensed under the Apache License, Version 2.0. // namespace ImageProcessor.Formats { /// /// Stores general information about the Bitmap file. /// /// /// /// The first two bytes of the Bitmap file format /// (thus the Bitmap header) are stored in big-endian order. /// All of the other integer values are stored in little-endian format /// (i.e. least-significant byte first). /// internal class BmpFileHeader { /// /// Defines of the data structure in the bitmap file. /// public const int Size = 14; /// /// Gets or sets the Bitmap identifier. /// The field used to identify the bitmap file: 0x42 0x4D /// (Hex code points for B and M) /// public short Type { get; set; } /// /// Gets or sets the size of the bitmap file in bytes. /// public int FileSize { get; set; } /// /// Gets or sets any reserved data; actual value depends on the application /// that creates the image. /// public int Reserved { get; set; } /// /// Gets or sets the offset, i.e. starting address, of the byte where /// the bitmap data can be found. /// public int Offset { get; set; } } }