Still loading. This can take a moment on a slow connection.
Still loading. This can take a moment on a slow connection.
Change an image’s resolution and colour depth, and work out how many colours it can have and how much storage it takes.
Column 5, row 3 is stored in 3 bits as 001
Red 0 = 0 of 1Green 0 = 0 of 1Blue 1 = 1 of 1
The number of colours is hidden until you answer the question in the guide.
This image has a colour depth of 3 bits. How many different colours can a pixel be? Answer it in the guide, or change a setting to see.
width × height × colour depth
≈ means rounded to 2 decimal places.
The number of colours stays hidden until you check.
Change the width, the height and the colour depth, and watch the picture and its size. Tap a pixel, or use the arrow keys on the picture, to read its code.
After you check a prediction, this says why.
Try what you found on the lesson’s 36 marked questions. Practise in Image Representation
The picture is drawn from a scene, not stored: the width and the height say how many pixels sample it, one at each pixel’s centre, and the colour depth says how finely each pixel’s colour is rounded. With 1 or 2 bits the pixels are shades of grey. From 3 bits up the bits are shared between red, green and blue, as 8-bit, 16-bit and 24-bit colour share them.
Above 480 pixels across or down, each pixel is smaller than the screen can show, so the picture is drawn at 480; the file size is still worked out for every pixel. Columns and rows are counted from 1. The size is the uncompressed size, with no header, as the syllabus calculates it.