To store a bitmap image of 128×128 pixels, 4 KB of memory were allocated.

To store a bitmap image of 128×128 pixels, 4 KB of memory were allocated. What is the maximum possible number of colors in the image palette?

K = 128×128
I = 4KB, convert kbytes directly into bits = 4 * 2 ^ 13 bits
I = k * i
N = 2 ^ i
we are looking for N.
We get: (4 * 2 ^ 13) / 2 ^ 7 * 2 ^ 7 (128 = 2 ^ 7) = 4/2 = 2
2 ^ 2 = 4
answer 4 colors



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.