Multimedia

Computer Science AS · Information representation. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Computer Science AS topics

The idea

A bitmap image is a grid of pixels. Each pixel stores one colour as a binary number. The number of bits per pixel is the colour depth, and the number of pixels in the image is the image resolution. A file header stores details such as the width, height and colour depth.

A vector graphic stores no pixels. It stores a drawing list of drawing objects (line, circle, rectangle), each with properties such as position, size and colour. It can be enlarged without losing quality.

Sound is analogue. To store it, the amplitude of the wave is measured at regular intervals. This is sampling. More samples per second and more bits per sample give a more accurate recording and a bigger file.

Rules to remember

Common mistake

Students forget to divide by 8 and give the answer in bits when the question asks for bytes. Always check the unit asked for before choosing an option.

Worked example

A bitmap image is 2048 × 1024 pixels with a colour depth of 16 bits. Ignoring the header, what is its file size in MiB?

  1. Number of pixels = 2048 × 1024 = 2 097 152.
  2. Size in bits = 2 097 152 × 16 = 33 554 432 bits.
  3. Size in bytes = 33 554 432 ÷ 8 = 4 194 304 bytes.
  4. Size in MiB = 4 194 304 ÷ 1024 ÷ 1024 = 4.

Answer: The file size is 4 MiB.

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Keep going

← Data representationCompression →Take a Computer Science AS test