Calculate the amount of video memory required to store a graphic image that occupies the entire screen
Calculate the amount of video memory required to store a graphic image that occupies the entire screen of a monitor with a resolution of 1024×768 and a number of displayed colors equal to 16777216
To solve this problem, you first need to express the information volume of one pixel from the specified number of colors in the palette.
For this we use the following formula:
N = 2 ^ i
where N is the number of colors;
i – information volume of one pixel.
Thus, we get:
16777216 = 2 ^ i
i = 24.
Find the total number of pixels in the image.
We multiply the dimensions of the monitor among ourselves.
1024 * 768 = 786432 pixels.
Determine the amount of video memory.
To do this, multiply the number of pixels by 24 bits.
786432 * 24 = 18874368 bits.
We translate into Kbytes.
18874368 / (1024 * 8) = 2304 KB.
In megabytes it will be:
2304/1024 = 2.25 MB.
Answer: 2.25 MB.