2.2 Characters and Images
2.2 Characters and Images
Unicode is an
alternative
encoding system. It
uses 16 bits to
encode each
character and is
therefore able to
represent far more
characters than
ASCII (over 65,000).
BITMAP IMAGES
Images can be represented using a grid of squares
called pixels. Each pixel can be uniquely identified by its
position in the grid (x/y coordinates) and each pixel is a
single colour.
ACTIVITY 4
Question Answer
What is a bitmap
image?
ACTIVITY 5A
Open a bitmap image in Fireworks, double the size and save
it under a new name. Compare the file sizes of the two
versions.
Question Answer
Compare the file
Version 1:
sizes of the two
Version 2:
versions.
Compare the
clarity of the two
images. Which is
clearer?
Why do you
think this is the
case?
ACTIVITY 5B
Reopen the original image, reduce its color depth and
preview it.
Question Answer
Summarise what
happens as the
colour depth
decreases.
COLOUR DEPTH
A binary code is used to represent the colour of a pixel. The
number of bits used to store each pixel’s colour is known as
the colour depth. The greater the colour depth, the more
colours can be represented.
The number of colours that can be represented can be
calculated using 2depth. For example a colour depth of 1 bit
can represent 2 colours.
2 no. of bits
Therefore 3 bits = 23
ACTIVITY 6
Complete the table below:
Colour
Number of colours Range
depth
1 bit 2 0–1
2 bits
3 bits
4 bits
8 bits
16 bits
24 bits
32 bits
1 BIT IMAGES
This image has only two colours, black and white and is
therefore has a colour depth of 1 bit. 1 = white and 0 =
black.
1,0,0,0,1
1,1,1,1,0
1,0,0,0,0
0,1,1,1,0
0,1,1,1,0
1,0,0,0,0
ACTIVITY 7
Fill in the grid to reveal what character this code produces (0 = black and
1 = white)
Binary
code
0000
0111
0111
0001
0111
0111
0000
ACTIVITY 8
Produce the binary code to produce the letter G in the grid below (0 =
black and 1 = white)
Binary
code
RESOLUTION AND FILE SIZE
The resolution or pixel density of an image is the number of
pixels per inch (PPI). Generally speaking the higher the
resolution the higher the quality of the image.
Hint: The formula for calculating the file size of a bitmap image is (height
x pixel density) x (depth x pixel density) x colour depth and there are 8
bits in a byte.
ACTIVITY 10
Calculate the file size of an image with dimensions of 5 inches x 7 inches,
a pixel density of 400 pixels per inch and a colour depth of 3 bits. Give
your answer in bytes.