Skip to content
Learnearn.uk » IGCSE Computer Science Course » Black and White Image Representation in Binary

Black and White Image Representation in Binary

Have a go at creating a smiley face in the grid bow below!

What are Bitmap Images?

A bitmap image is a image that is represented by a grid of square pixels. In a black and white image, each pixel can be either black or white. The total number of pixels in an image is known as the resolution. For example, an image that is 500 pixels wide by 500 pixel high has a resolution of 250,000 pixels ( or 0.25 megapixels). Moderns cameras take pictures over 20 megapixels in size. That’s a lot of pixels!

Advantages of bitmaps

  • Bitmaps have a small storage size, compared with the amount of data being stored ( especially when combined with lossless and lossy compression). This means that you can take a lot of images using just one SD card.
  • Bitmap images can be displayed very easily on computer screens, so your computer doesn’t need to use a lot of processing power just to display the image.
  • Most operating systems and internet browsers can display bitmap images with the need for specialist software.

Disadvantages of bitmaps

  • Bitmaps can only be enlarged a certain amount before the image becomes blurry or ‘pixelated’.
  • Lossy compression can damage images, resulting in defects on the image.
smiley

An 64 pixel bitmap image on a 8 by 8 grid

untitled-drawing

When bitmap fonts are enlarged, they become pixellated

Bitmap Images to Binary

Representing a bitmap black and white image in binary is easy – starting at the top left of the image, and working you way across and then down , you write a 1 for each black pixel and a zero for each white pixel.

step-1-binary-bitmap-bw

The binary for the image above would be 00000000 01100110 01100110 00000000 00000000 01000010 00111100 00000000

Have a go at this pairs activity. You will need to print out the worksheet, unless your teacher has already printed it out for you!

Pairs Activity Worksheet

Lesson 3 B &W Images

Log on to Google Classroom and fill out your learning log for the lesson!

Google Classroom