Sunday, December 4, 2011

Assignment #33

1. An image is 800 by 500 pixels, and each pixel can be one of four colors. How much memory would it require?
800 X 500 = 400,000 pixels
2 bit-code
2 x 400,000 = 800,000 bits
800,000/8 = 100,000 bytes
100,000/1,000 = 100 kB of memory


2. An image is 800 by 500 pixels, and each pixel can be one of four colors. How much storage space would it require?
100 kB of storage

3. How many different colors could one represent using two, three and four bit codes?
With a 2-bit code, you can illustrate 4 colors.
With a 3-bit code, you can
illustrate 8 colors.
With a 4-bit code, you can
illustrate
16 colors.

4. When you add one bit to a code, what happens to the number of possible colors?
The number of possible colors will increase if one bit is added to a code.

No comments: