If an image is represented using 400 x 300 pixels and each p
If an image is represented using 400 x 300 pixels and each pixel is represented using 8 bits, what will be the exact amount of data needed in kilobytes to represent in the image?
Solution
there are 1200 pixels in total.
Each pixel is represented requires 8 bit for its representation which 1 byte of data.
Now for 1200 pixels we require 1200 bytes of data to represent a 400x300 pixel image.
1 byte = 1/1024kb
1200 byte = 1200*(1/1024) = 1.17 kb data is required to present an image.