Data Representation: 2.3 Character Sets and Images
Data Representation: 2.3 Character Sets and Images
Topic 2: Data GCSE Computing A451 Theory “Hard work pays off,
representation in computers never give up!”
Starter:
Using the ASCII table, decode the
following message…
Binary Dec ASCII
01010011
01110101
01110000
01100101
01110010
01101101
01100001
01101110
Topic 2: Data “Hard work pays off,
00100000
representation in computers never give up!”
TWWL
Explain the use of binary code
to represent characters
D C A
Topic 2: Data GCSE Computing A451 Theory “Hard work pays off,
representation in computers never give up!”
Learning Journey
Topic 2: Data GCSE Computing A451 Theory “Hard work pays off,
representation in computers never give up!”
Character sets
Pixels: The smallest element of an image. Pixels are the dots that
make the image on screen.
Resolution: Number of pixels per unit, e.g. dpi (dots per inch) or
ppi (pixels per inch).
The higher the resolution of an image, the larger the file size
because… the image contains more pixels (data).
Topic 2: Data GCSE Computing A451 Theory “Hard work pays off,
representation in computers never give up!”
How does a computer know what size,
resolution, e.t.c. an image is? Metadata…
Information about
the image data that
allows the computer
to recreate the image
from the binary data
in the file.
Must contain the
height, width &
colour-depth.
Topic 2: Data GCSE Computing A451 Theory “Hard work pays off,
representation in computers never give up!”
How are images represented
using binary code?
What do you think the 1s and 0s represent
in an image?
Topic 2: Data GCSE Computing A451 Theory “Hard work pays off,
representation in computers never give up!”
Colour depth of an image…
How does a computer know what to do with the binary numbers in
order to display the right image?
1 bit
The space invader image uses just black
1 0 and white colours and each pixel
displays 1 colour.
8 bit
The Batman image uses multiple colours
11001100 01110110
and shades. To do this each pixel needs
to display multiple colours.
1 bit 21 2 colours
2 bit 22 4 colours
3bit 23 8 colours
Topic 2: Data “Hard work pays off,
representation in computers never give up!”
Practical 2
Go to http://bit.ly/TJQkGA
Have a go at
each of these
challenges.
What do you
notice about
the number
of bits and
the number
of colours?
Topic 2: Data GCSE Computing A451 Theory “Hard work pays off,
representation in computers never give up!”
Questions on the…
‘Representation of images’
1. How does the resolution of an image
affect the file size?
2. What do we mean by image size?
3. What meta-data is stored with an image
file?
4. If an image has its colour depth
decreased, what is the effect?
5. How many colours can be represented
using a 4bit colour system?
Topic 2: Data GCSE Computing A451 Theory “Hard work pays off,
representation in computers never give up!”