Consider a raster system with the resolution of 1024 x 768 pixels and the color palette calls for 65,536 colors.
What is the minimum amount of video RAM that the computer must have to support the above-mentioned resolution and number of colors?
Recall that the color of each pixel on a display is represented with some number of bits. Hence, a display capable of showing up to 256 colors is using 8 bits per pixels (i.e. “8-bit color”).
Notice first that the color palette calls for 65,536 colors. This number is but 216 , which implies that 16 bits are being used to represent the color of each pixel on the display.
The display’s resolution is 1024 by 768 pixels, which implies that there is a total of 786,432 (1024 × 768) pixels on the display.
Hence, the total number of bits required to display any of 65,536 colors on each of the screen’s 786,432 pixels is 12,582,912 (786,432 × 16).
Dividing this value by 8 yields an answer of 1,572,864 bytes. Dividing that value by 1,024 yields an answer of 1,536 KB. Dividing that value by 1,024 yields an answer of 1.5 MB.