Why can bitmaps with pixel depth higher than 8 bit can do without a color table and the ones with 8 bit and below require a color palette table ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because bitmaps with a pixel depth of 8 bits and lower do not necessarily use a fixed color table. Instead, they define a custom optimized 8-bit color table that contains only the specific colors used in that particular bitmap image. In other words, they use a “selective” palette.
Remember that bitmaps are indexed images, which means that the color of each pixel is defined by an integer value that specifies an index into the color palette.
The advantage is that on systems with very limited color display capabilities, the bitmap’s color palette can be optimized for those specific colors that the bitmap uses, rather than some generic list of colors.
For comparison purposes, here are two sample images. Both of them use only an 8-bit color palette, but the one on the left uses an optimized (or “selective”) color palette, while the one on the right was forced into conformity with the standard Windows 256-color palette:
The difference in quality and color fidelity is immediately clear. The one on the left is far superior, even with the same 8 bits per pixel to play with.
Once you get above 8 bits per pixel, this isn’t very important. The “standard” or “generic” colors give you plenty to work with to produce a recognizable image. That’s not so with only 256 colors, much less 16.