Calculate the size of a file containing a 256×128 pixel graphic, saved as: a. monochrome drawing

Calculate the size of a file containing a 256×128 pixel graphic, saved as: a. monochrome drawing: b. 16-color drawing b. 256-color drawing d. 24-round drawing

First, let’s calculate how many pixels are contained in the picture. To do this, multiply the width of the image by the length: 256 x 128 = 32768.
Now you can calculate the size of the image depending on the number of colors used in it:
a) Monochrome picture – 2 colors, 1 bit 2 ^ 1 = 2 is used to store each pixel. Therefore, the file size is 32768 x 1 = 32768 bits = 4096 bytes = 4KB.
b) 16-color image – 16 colors, 2 ^ 4 = 16 => 4 bits are used to store each pixel. File size 32768 x 4 = 131072 bits = 16384 bytes = 16 KB.
c) Similarly, for a 256-color image, 8 bits are used (2 ^ 8 = 256), therefore the image size is 32768 x 8 = 262144 bits = 32768 bytes = 32 KB.
d) 32768 x 24 = 786432 bits = 98304 bytes = 96 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.