All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Pixel?

Definition 12.2 Primary & Middle School Computer Science · Chapter 12 — Text, Pictures and Sound as Numbers

A pixel is one of the tiny squares, all of one colour, that make up a picture on a screen or in a file, arranged in rows and columns.

A smiley of 8 by 8 pixels and its 64 bits: 1 for a black pixel, 0 for a white one, one row of bits for each row of pixels.
A smiley of 8 by 8 pixels and its 64 bits: 1 for a black pixel, 0 for a white one, one row of bits for each row of pixels.

Examples

Example 12.6 (The size of a picture)

A small picture of 400 by 300 pixels has 400×300=120 000400 \times 300 = 120\,000 pixels. Kept as three bytes per pixel, one for each colour, it takes 120 000×3=360 000120\,000 \times 3 = 360\,000 bytes: 360 kilobytes. Twice as many columns and twice as many rows make four times as many pixels, and a file four times as big.

Read in context →