How much memory in kilobytes should be allocated for storing a 640×480 pixel raster image
January 27, 2021 | education
| How much memory in kilobytes should be allocated for storing a 640×480 pixel raster image if there are 256 colors in the image palette?
Given:
N = 256
K = 640 * 480
I =?
1. Let’s find the informational weight of one symbol i, applying the formula: N = 2 ^ i.
i = 8 bits since 2 ^ 8 = 256.
2. The information capacity of the file is calculated by the formula: I = K * i.
I = 640 * 480 * 8 bit
3. It is known that:
1 byte = 8 bits,
1 KB = 1024 bytes.
Therefore: I = 640 * 480 bytes = 307200 bytes = 300 * 1024 bytes = 300 KB.
Answer: For storing a raster image with a size of 640×480 pixels of a 256 color image, you need to allocate 300 KB.
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.