Pixels
A bitmap image is made of a grid of tiny squares called pixels. Each pixel is stored as a binary code, and that code stands for one colour.
A bitmap image is a grid of pixels, and every pixel is stored as a number. Type colour codes into the grid to draw a picture, then change the resolution, colour depth and number system to see how the image is really stored.
Shown at 4× actual size. Each square on the grid is one pixel.
Real image files also store metadata (like the width, height and colour depth) and often use compression.
A bitmap is the simplest way to store a picture: a grid of pixels where every pixel is a binary number. These are the key ideas for GCSE Computer Science.
A bitmap image is made of a grid of tiny squares called pixels. Each pixel is stored as a binary code, and that code stands for one colour.
Resolution is the number of pixels in the image, usually given as width × height. More pixels show more detail, but there are more codes to store, so the file gets bigger.
Colour depth is the number of bits used for each pixel. The number of colours available is 2 to the power of the colour depth: 1 bit gives 2 colours, 4 bits gives 16, 8 bits gives 256 and 24 bits gives 16,777,216.
File size in bits = width × height × colour depth. Divide by 8 for bytes.
An image file also stores metadata: data about the image, such as its width, height and colour depth. Without it, the computer wouldn't know how to turn the stream of bits back into a picture. Save a file above and open it to see the metadata at the top.
Every pixel needs more bits to store its colour code, and that extra data is added for every single pixel in the image.
8 bits each for red, green and blue. It gives over 16 million colours and is often written as a 6-digit hex code, such as FF0000 for red.
Yes. Save gives you a text file, and Load opens it again with the same resolution, colour depth and number system.