Module
1.3
Extension Task 1 - Colour Graphics |

A.M.D.G.
|
Different
colours cannot be represented using only 1 bit.
2 bits allows us
to use four colours.
e.g. 00 = white
01 = red 10 = green
11 = blue
10 |
00 |
01 |
11
|
11 |
01 |
00 |
10 |
10 |
00 |
01 |
11 |
11 |
01 |
00 |
10 |
10 |
00 |
01 |
01 |
01 |
01 |
00 |
10 |
10 |
10 |
10 |
10 |
10 |
10 |
10 |
10 |
10 |
10 |
10 |
10 |
10 |
10 |
10 |
10 |
10 |
00 |
01 |
01 |
01 |
01 |
00 |
10 |
10 |
00 |
01 |
11 |
11 |
01 |
00 |
10 |
10 |
00 |
01 |
11 |
11 |
01 |
00 |
10 |
|
= |
|
Using
4 coloured pencils convert this binary to a colour image. Write which
colours you will use below.
00
= 01
= 10
= 11=
00 |
00 |
11 |
01 |
01 |
11 |
00 |
00 |
01 |
11 |
10 |
10 |
10 |
10 |
11 |
01 |
01 |
11 |
10 |
11 |
11 |
10 |
11 |
01 |
10 |
11 |
10 |
11 |
11 |
10 |
11 |
10 |
10 |
11 |
10 |
11 |
11 |
10 |
11 |
10 |
01 |
11 |
10 |
11 |
11 |
10 |
11 |
01 |
01 |
11 |
10 |
10 |
10 |
10 |
11 |
01 |
00 |
00 |
11 |
01 |
01 |
11 |
00 |
00 |
|
= |
|
Answer
the following questions in your jotter:
1.
If an image is black and white, how many bits are required for each
pixel?
2. If an image has 4 colours, how many bits are required for each
pixel?
3. If an image has 8 colours, how many bits are required for each
pixel?
4. If an image has 16 colours, how many bits are required for each
pixel?
5. If an image has 256 colours, how many bits are required for each
pixel?
6.
An image has a resolution of 640 x 480 pixels. How much memory is
required to store this image in memory if:
(a)
The image is black and white?
(b) The image has 8 colours?
(c) The image has 256 colours?
|