๐Ÿ–ผ๏ธ Pixels vs Maths

Bitmap vs Vector Images

There are two completely different ways to store an image on a computer. One uses tiny coloured squares (pixels), the other uses mathematical instructions. Zoom in to see the difference.

CS GCSE ยง1.2 DigiTech GCSE ยง1.1.1 CS A-Level Unit 1

๐Ÿค” Two ways to draw a circle

Bitmap: Colour in individual squares on graph paper until it looks like a circle. Zoom in and you see jagged squares.

Vector: Write down "draw a circle at position (5,5) with radius 3". The computer calculates the perfect circle at any size.

๐Ÿ”

Zoom in โ€” see the difference

Use the slider to zoom in on both images at the same time. Watch what happens to each one.

๐Ÿ–ผ๏ธ Bitmap (pixels)
๐Ÿ“ Vector (maths)
๐ŸŽจ

Choose an image

๐ŸŽจ

Bitmap colour depth

Colour depth = how many bits are used to store each pixel's colour. More bits = more colours = bigger file.

๐Ÿ“Š

Bitmap vs Vector โ€” the full comparison

๐Ÿ–ผ๏ธ Bitmap๐Ÿ“ Vector
Made ofPixels (tiny coloured squares)Mathematical shapes (lines, curves, points)
Zoom in?Gets pixelated / blurry โŒStays perfectly sharp โœ…
File sizeLarge (stores every pixel)Small (stores instructions, not pixels)
Edit how?Change individual pixelsMove/resize shapes and paths
Best forPhotos, detailed imagesLogos, icons, text, illustrations
File types.jpg, .png, .bmp, .gif.svg, .ai, .eps, .pdf
File size formulawidth ร— height ร— colour depthNo fixed formula โ€” depends on complexity
๐Ÿ“ Exam tip: File size calculation for bitmap: width ร— height ร— colour depth รท 8 = size in bytes. A 1920ร—1080 image at 24-bit colour = 1920 ร— 1080 ร— 24 = 49,766,400 bits = 5.93 MB (uncompressed).