CFA-001 practice question 13 of 25

BMP (Bitmap) is a standard file format for computers running the Windows operating system. BMP images can range from black and white (1 bit per pixel) up to 24 bit color (16.7 million colors). Each bitmap file contains header, the RGBQUAD array, information header, and image data. Which of the following element specifies the dimensions, compression type, and color format for the bitmap?

Full set: 180 questions

Domain Understanding Hard Disks and File Systems

Answer options
A: Header
B: The RGBQUAD array
C: Information header Correct answer
D: Image data
Correct Answer:
C. Information header
Explanation

The BMP file format contains a metadata structure called the Information Header (specifically, the BITMAPINFOHEADER structure). This header provides detailed information about the image itself. It includes essential attributes such as the bitmap's width and height (dimensions), the number of bits per pixel (which defines the color format), and the type of compression being used (e.g., BIRGB for uncompressed). The application reading the file uses this information to correctly interpret and display the subsequent image data.

Why Incorrect

A. Header: The file header (BITMAPFILEHEADER) identifies the file as a BMP and contains the total file size and the offset to the image data, not the image's specific format details.
B. The RGBQUAD array: This is the color table or palette. It defines the specific colors used in indexed-color bitmaps (e.g., 8-bit) but does not specify dimensions or compression.
D. Image data: This section contains the actual pixel values for the image. It is the raw data itself, not the metadata that describes its structure or format.

References

1. Microsoft Corporation. (2021). BITMAPINFOHEADER structure (wingdi.h). Microsoft Docs. Retrieved from Microsoft Learn. This official documentation specifies the members of the structure, including biWidth and biHeight (dimensions), biBitCount (color format), and biCompression (compression type).

2. Pravetz, J. (n.d.). Windows BMP File Format Specification. Cornell University, Department of Computer Science. In the "DIB Header (Bitmap Information Header)" section, it is detailed that this header contains the image width, height, bits per pixel, and compression method.

3. Foley, J. D., van Dam, A., Feiner, S. K., & Hughes, J. F. (1996). Computer Graphics: Principles and Practice (2nd ed.). Addison-Wesley. Chapter 18, "Image File Formats," describes the structure of various formats, including BMP, and clarifies that the information header block contains image-specific attributes like dimensions and color depth. (Specific reference to the BITMAPINFOHEADER block's role).

Scroll to Top