Examples of DIB Files

The following example is a FileWalker text dump of a Windows 3.0 DIB. This is a four-bit, 16-color bitmap:

          Win3DIBFile
              BitmapFileHeader
                  Type       19778
                  Size       3118
                  Reserved1  0
                  Reserved2  0
                  OffsetBits 118
              BitmapInfoHeader
                  Size            40
                  Width           80
                  Height          75
                  Planes          1
                  BitCount        4
                  Compression     0
                  SizeImage       3000
                  XPelsPerMeter   0
                  YPelsPerMeter   0
                  ColorsUsed      16
                  ColorsImportant 16
              Win3ColorTable
                  Blue  Green  Red  Unused
[00000000]        84    252    84   0
[00000001]        252   252    84   0
[00000002]        84    84     252  0
[00000003]        252   84     252  0
[00000004]        84    252    252  0
[00000005]        252   252    252  0
[00000006]        0     0      0    0
[00000007]        168   0      0    0
[00000008]        0     168    0    0
[00000009]        168   168    0    0
[0000000A]        0     0      168  0
[0000000B]        168   0      168  0
[0000000C]        0     168    168  0
[0000000D]        168   168    168  0
[0000000E]        84    84     84   0
[0000000F]        252   84     84   0
              Image
    .
    .                                          Bitmap data
    .

The following example is a FileWalker text dump of a Presentation Manager 1.2 DIB. This is an eight-bit, 256-color bitmap:

          OS2DIBFile
              BitmapFileHeader
                  Type       19778
                  Size       409454
                  Reserved1  0
                  Reserved2  0
                  OffsetBits 794
              BitMapCoreInfo
                  Size     12
                  Width    555
                  Height   735
                  Planes   1
                  BitCount 8
              OS2ColorTable
                  Blue  Green  Red
[00000000]        0     0      0
[00000001]        248   248    248
[00000002]        240   248    248
    .
    .                                          Color entries
    .
[000000FD]        48    48     56
[000000FE]        176   24     40
[000000FF]        252   252    252
              Image
    .
    .                                          Bitmap data
    .