Data representation
Data representation
Data representation
1. Photos have been taken for a school website on a 10 megapixel digital camera.
10 million pixels
The number of dots per inch, where a dot is an inch on the screen, defined by width x
height
c) 30 images have been placed on the homepage of the website and it is now loading
slowly. Describe three changes that could be made to the images to help alleviate this
problem. [3]
● Use the right image format (e.g JPEG for photographs and PNG for graphics)
● Resize the image to be smaller
● Use compression software to compress image
2. A space invader image, pictured below, has been created as part of a computer game.
1
Homework 4 Representing images
Data representation
a) State and explain the minimum number of bits that must be used to represent this
image. [3]
2, In the image there are 4 colours (red, white, yellow and black). This means that a
colour depth of 2 is needed to represent all 4 colours as 2^2 is 4.
The first line of the image can be encoded as 11111100 00111111. A white pixel is coded
as 00.
b) Suggest a suitable 16-bit pattern that could be used to define the third row in the image.
[2]
0100111111100001
d) Metadata is also stored with the image data. What is meant by metadata? [1]
A set of data that describes and gives information about other data
e) Give two examples of metadata that might be included with this file. [2]
- Dimensions
- Colour depth
- File size
- File name
f) The colour red can be represented in hexadecimal as ff0000. Explain why. [2]
In the RGB colour system, the amount of each colour can be represented by a
numerical value. In this case, ff represents the red part of RGB and its value is 255, meaning it
is the most prominent amount of red. For green and blue, the values are 0, meaning they don’t
show at all.
[Total 20 marks]