Sunday, 4 December 2016

representing images, sound and other data

5a) a bitmap image has resolution 1000 x 400. Calculate the resolution in megapixels.
1000 x 400 = 400,000
B) Each pixel in the image is stored using 16 bits. Calculate the file size in bytes in bytes.
400,000 x 16 = 6,400,000
6,400,000 / 8= 800,000

6a) a bitmap image resolution 2000 x 5000 uses 400 distinct colours. Calculate the size of the file in megabytes /mebibytes
2000x x 5000 = 10,000,000
log(400) / log(2) = 9
10,000,000 x 9 = 90,000,000
90,000,000 / 8 / 1024 / 1024 = 10.7 MiB
B) the image's resolution is increased to 5000 x 5000. Calculate the increase in file size from part a in megabytes to one decimal place / mebibytes
16.1 Mib increase
C) calculate the change in file size from part b if the number if colours is increased to:
i 500
2.2 MiB

No comments:

Post a Comment