diff --git a/file_formats/ie_formats/bmp_v5.htm b/file_formats/ie_formats/bmp_v5.htm new file mode 100644 index 00000000..fd5dfa99 --- /dev/null +++ b/file_formats/ie_formats/bmp_v5.htm @@ -0,0 +1,258 @@ +--- +title: "BMPv5 file format" +--- +
BMP file format
+
+
Applies to:
+
BG(2):EE, IWD:EE, PST:EE
+
+ +
General Description
+ Microsoft format documentation
+ The Enhanced editions support also version 5 of the BMP format. It is largely the same as version 1 used by the original games, but supports 32-bit colors (still 8 bits per channel, but adds one for alpha).
+
+
+
+ Header format
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameSizeDescription
0x00Signature2 bytes'BM'
0x02FileSize4 bytesFile size in bytes
0x062 reserved words4 bytesunused (=0)
0x0aDataOffset4 bytesFile offset to Raster Data
0x0eSize4 bytesSize of InfoHeader =40 
0x12Width4 bytesBitmap Width
0x16Height4 bytesBitmap Height
0x1aPlanes2 bytesNumber of Planes (=1)
0x1cBitCount2 bytesBits per Pixel
0x1eCompression4 bytesType of Compression: BI_RGB (uncompressed), BI_BITFIELDS (uncompressed with color masks), BI_RLE4 / BI_RLE8 (with runtime encoding)
0x22ImageSize4 bytes(compressed) Size of Image 
+ It is valid to set this =0 if + Compression = 0
0x26XpixelsPerM4 byteshorizontal resolution: + Pixels/meter
0x2aYpixelsPerM4 bytesvertical resolution: Pixels/meter
0x2eColorsUsed4 bytesNumber of actually used colors
0x32ColorsImportant4 bytesNumber of important colors 
+ 0 = all
0x36Color masks
  Red mask4 bytesMask identifying bits of red component
Green mask4 bytesMask identifying bits of green component
Blue mask4 bytesMask identifying bits of blue component
Alpha mask4 bytesMask identifying bits of alpha component
0x46CSType4 bytesColor space type
0x4aRedX4 bytesX coordinate of red endpoin
0x4eRedY4 bytesY coordinate of red endpoin
0x52RedZ4 bytesZ coordinate of red endpoin
0x56GreenX4 bytesX coordinate of green endpoint
0x5aGreenY4 bytesY coordinate of green endpoint
0x5eGreenZ4 bytesZ coordinate of green endpoint
0x62BlueX4 bytesX coordinate of blue endpoint
0x66BlueY4 bytesY coordinate of blue endpoint
0x6aBlueZ4 bytesZ coordinate of blue endpoint
0x6eGammaRed4 bytesGamma red coordinate scale value
0x72GammaGreen4 bytesGamma green coordinate scale value
0x76GammaBlue4 bytesGamma blue coordinate scale value
0x7aIntent4 bytesRendering intent for bitmap
0x7eProfileData4 bytesOffset to profile data
0x82ProfileSize4 bytesSize of embedded profile data
0x86Reserved34 bytes
+ + + + diff --git a/file_formats/index.htm b/file_formats/index.htm index 95e76dad..61c9ff25 100644 --- a/file_formats/index.htm +++ b/file_formats/index.htm @@ -13,7 +13,7 @@ BAM  Version 1 || Version 2
BCS  Version 1
BIF  Version 1
- BMP  Version 1
+ BMP  Version 1 || Version 5
CHR  Version 1 || Version 1.2 || Version 2 || Version 2.2 || Version 9
CHU  Version 1
CRE  Version 1 || Version 1.2 || Version 2.2 || Version 9