Professional Documents
Culture Documents
1 1 2-Images PDF
1 1 2-Images PDF
The BIOS in many personal computers stores the date and time in BCD
Images
How data for a bitmapped image is encoded?
in
sa
us
H
A bitmap images take the form of an array, where the value of each element, called
q
a pixel picture element, correspond to the color of that portion of the image. Each
a
The letter 'a' might be represented in a 12x14 matrix as depicted in above Figure the
us
values in the matrix depict the brightness of the pixels (picture elements). Larger values
-M
All bitmap images are stored as an array of pixels. A monochrome bitmap will store a
1 for a black pixel and 0 for a white pixel (or vice-versa depending on the encoding
protocol).
in
not damaged. The first two bytes of the BMP file format are the character 'B' then the
sa
character 'M' in 1-byte ASCII encoding
us
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
H
header format.
q
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
-M
Example
8 1024
= 37856
------
8192 = 4.62 KB
Number of Where do # of
Bit Depth
Colours Colours Come
(Bits Per Pixel)
or Tones From?
1 2 21=2
2 4 22=4
3 8 23=8
in
sa
4 16 24=16
6 64
us 26=64
H
8 256 28=256
a q
This grey scale image has 3 dimensions. Lets examine the properties of this image.
ht
Remember that because this image is a gif the actual file size will be different to the
us
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.
M
= 320000
----------
8192
=39 KB
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.
The file size of an animation is simply a process of multiplying the number of frames by the
image size of each image.
in
sa
us
H
q
in
sa
us
H
q
FormulaNumber of pixels = image width x resolution x image height x resolution
a
ht
Formula
Number of colours = 2bit depth
Example
Calculate the number of colours which can be represented using 16 bits
Colours = 216 = 65536