Calculate the amount of video memory required to store a graphic image that occupies the entire screen of a monitor

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 the number of displayed colors equal to 16,777,216.

1) Determine the length of the code that is used to encode the color. Since the number of colors is N = 16,777,216, the color depth is 24 bits, or taking into account the fact that 1 byte = 8 bits, 24 bits = 3 bytes.

2) Determine how many points will be on the screen with a given resolution, for this we multiply the number of points by the number of lines on the screen and get:

1024 * 768 dots.

3) Find the required amount of video memory for a mode with a resolution of 1024 by 768 pixels, for this, according to the formula I = K * i, where K is the number of points on the screen, and i is the color depth, you need to multiply and get:

1024 * 768 * 3 bytes = 768 * 3 KB = 2304 KB = 2.25 Megabytes.

Therefore, the required video memory for the mode with a resolution of 1024 by 768 and a palette of colors 16 777 216 is 2.25 MB.

Answer: 2.25 Megabytes.



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.