The location map in this document is an uncompressed location map without any device. dib.the location map in this category is generally a file extension. BMP
The number of bytes in the data area of these images must be a multiple of 4.
The number of color data bytes in each row must be a multiple of 4. The number of insufficient bytes must be filled with 0.
Each color point of a 24-Bit Bitmap is represented by three bytes, W indicates the width of the bitmap, and h indicates the height of the bitmap, in this case, each row has an offset byte offset = W * 3% 4 = 0? 0: (4-W * 3% 4) (there is another and or non-algorithm, which is not easy to understand ). therefore, the size of its bitmap data is size = (w * 3 + offset) * W;
The 32-Bit Bitmap is a multiple of 4 regardless of the width. Therefore, the offset is 0;
Each of the 8-Bit Bitmap color data represents an index of the color table. each row of the color table must be a multiple of 4 and must be filled with zero!