1 1 2-Images PDF
1 1 2-Images PDF
1 1 2-Images PDF
The BIOS in many personal computers stores the date and time in BCD
Images
us
sa
in
ht
a
A bitmap images take the form of an array, where the value of each element, called
a pixel picture element, correspond to the color of that portion of the image. Each
horizontal line in the image is called a scan line.
M
-M
us
The letter 'a' might be represented in a 12x14 matrix as depicted in above Figure the
values in the matrix depict the brightness of the pixels (picture elements). Larger values
correspond to brighter areas whilst lower values are darker.
us
sa
in
This block of bytes is at the start of the file and is used to identify the file. A typical
application reads this block first to ensure that the file is actually a BMP file and that it is
not damaged. The first two bytes of the BMP file format are the character 'B' then the
character 'M' in 1-byte ASCII encoding
The size value occupies 4 bytes by default. However, with the use of the 4 reserved
bytes, this value can occupy 8 bytes (64 bits) while still conforming to the BMP file
header format.
ht
a
us
Example
M
-M
A black and white image has two dimensions that need to be considered the number of
pixels in the horizontal plane multiplied number of pixels along the vertical axis. Note
that a black and white image is not grey scale.
= 4.62 KB
Bit Depth
(Bits Per Pixel)
Where do # of
Colours Come
From?
21=2
22=4
23=8
16
64
256
sa
in
us
24=16
28=256
ht
a
26=64
M
-M
us
This grey scale image has 3 dimensions. Lets examine the properties of this image.
Remember that because this image is a gif the actual file size will be different to the
result in the formula.
The image is 200 pixels horizontal by 200 pixels vertical. Now we need to know the bit
depth. The bit depth of this image is 8.
File size = 200 200 8
----------------8 1024
= 320000
---------8192
=39 KB
Activity 2
1. Find an uncompressed image. Right click on the thumbnail of the image and click on
properties. Now click the summary tab. You now can find all the details you need to work
out the file size of an image.
us
sa
in
The file size of an animation is simply a process of multiplying the number of frames by the
image size of each image.
M
-M
us
ht
a
us
sa
in
Resolution is often given in dots per inch e.g. an image is 72 dots per inch. This means
that there are 72 dots in each inch running horizontally, and 72 dots in each inch
running vertically. Therefore in the image below which is of 1 inch x 1 inch, there would
be
72
x
72
=
5184
pixels
ht
a
M
-M
us
The colour depth is the number of bits used to represent the colour of a single pixel.
1
bit
can
be
used
to
represent
2
colours
2
bits
can
be
used
to
represent
4
colours
3
bits
can
be
used
to
represent
8
colours
4
bits
can
be
used
to
represent
16
colours
Formula
Number
of
colours
2bit
depth
Example
Calculate the number of colours which can be represented using 16 bits
Colours = 216 = 65536