A bitmap image is made up of lots of picture elements (pixels).
Each pixel is a small rectangular block that has information about its colour.
Width = 13 pixels
Height = 11 pixels
Colours = 3 (red, white, black)
Image resolution is the number pixels in the image.
Width = 13 pixels
Height = 11 pixels
Number of pixels = 13 × 11 = 143
The higher the resolution, more pixels in an image, the more detail can be displayed, making the image more realistic.
Each pixel has a colour depth.
The number of colours that can be displayed.
1 bit colour depth = 21 = 2 colours
2 bit colour depth = 22 = 4 colours
3 bit colour depth = 23 = 8 colours
8 bit colour depth = 28 = 256 colours
16 bit colour depth = 216 = 65,536 colours
24 bit colour depth = 224 = 16,777,216 colours
True colour (humans can distinguish approximately 10,000,000 colours)
2 bit colour depth
The greater the colour depth, the more colours can be displayed, allowing more realistic images.
An image's size is calculated from the number of pixels multiplied by the colour depth.
Width = 13 pixels
Height = 11 pixels
Colours = 3 (red, white, black)
Number of pixels = 143
Colour depth = 2 (four colour)
Image size
143 × 2 = 286 bits
286 ÷ 8 = 35.75 (36 bytes)
My first monitor had a resolution of 640 × 480 with 16 bit colour.
So each image on the screen was:
640 × 480 × 16 = 4,915,200 bits
4,915,200 ÷ 8 = 614,400 bytes
approximately 614 kB
approximately 6.9 MB
This presentation was created on a monitor with a resolution of 1920 × 1200 and the colour depth is 24 bit.
So each image on the screen is:
1920 × 1200 × 24 = 55,296,000 bits
55,296,000 ÷ 8 = 6,912,000 bytes
Each pixel has the binary color assigned to it.
Two colours means one bit.
Let white be '0' and blue be '1'.
1
1
1
1
1
0
0
0
0
1
0
1
0
1
0
1
0
1
This binary value represents an image of resolution 5 x 5 with a colour depth of 2.
0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0
Draw the image, use the grid to help you.
Work from left to right putting the binary number in each square.
Shade in the squares that contain a '1'.
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
The number of bits used for each pixel.
2⁵ = 2 × 2 × 2 × 2 × 2 = 32
file size (bits) = width × height × colour depth
Advantage: likely to produce a better quality image
Disadvantage: will require more storage space
file size (bits) = width × height × colour depth
Advantage: likely to produce a better quality image
Disadvantage: will require more storage space
10 × 10 × 4 = 400 bits
Advantage: likely to produce a better quality image
Disadvantage: will require more storage space
10 × 10 × 4 = 400 bits
Two colours only needs 1 bit colour depth, so a 4-bit image will need four times the storage it needs.
10 × 10 × 4 = 400 bits
Two colours only needs 1 bit colour depth, so a 4-bit image will need four times the storage it needs.
1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1