Professional Documents
Culture Documents
Data representation
Worksheet 4: Images
1. This image uses four colours so requires 2 bits per pixel. Shade in the image as a
computer using the key.
10 10 10 10 10 10 10 10 10 10 10 10 10 10
10 00 00 10 00 00 10 00 00 10 00 00 00 10
10 00 00 10 00 00 10 00 00 10 00 00 00 10
10 10 10 10 10 10 10 10 10 10 10 10 10 10
10 00 00 10 00 00 10 00 00 10 00 00 00 10
10 00 00 10 00 00 10 00 00 10 00 00 00 10
10 00 11 10 10 10 10 10 10 10 10 10 10 10
10 11 11 10 10 10 10 10 10 10 10 10 01 01
10 10 10 10 11 11 10 10 10 10 11 11 10 10
00 00 00 00 11 11 00 00 00 00 11 11 00 00
Key: 01 00 11 10
1
Worksheet 4 Images
Data representation
3. How does increasing the image resolution affect the file size?
2
Worksheet 4 Images
Data representation
Image Compression
10px
The first and second rows of the image above would be stored as 14 lots of 11011010:
The same data could be stored as 00001110-11011010 (14 [binary 00001110] lots of
11011010) without losing any information required to piece together the image again.
This is known as RLE or Run Length Encoding.
Record the data for the third, fourth and fifth lines in the image:
Line
Binary image data
number
1 00001110-11011010
2 00001110-11011010