What is the minimum amount of memory (in KB) that must be reserved to store any 128 x 128 pixel bitmap, provided the image can
September 26, 2020 | Education
| What is the minimum amount of memory (in KB) that must be reserved to store any 128 x 128 pixel bitmap, provided the image can use 256 different colors? In the answer, write down only an integer, you do not need to write a unit of measurement.
Decision:
One pixel is encoded with 8 bits of memory.
Total 128 * 128 = 2 ^ 7 • 2 ^ 7 = 2 ^ 7 pixels.
Then the amount of memory occupied by the image is 2 ^ 14 * 8 = 2 ^ 17 bits = 2 ^ 14 bytes = 2 ^ 4 * KB = 16 KB.
Answer: 16.
