Technical
The more pixels used to represent an image, the closer the result will resemble the original. The number of pixels in an image is called the resolution. This can be expressed as a single number, as in a 'three megapixel' digital camera, which has three million pixels, or as a pair of numbers, as in a '640 by 480 display', which has 640 pixels from side to side and 480 from top to bottom (as in a VGA display), and therefore has a total number of 640 × 480 = 307,200 pixels.
The coloured dots that form a digitized image (such as a JPG file used on a web page) are also called pixels. Depending on how a computer displays an image, these may not be in one-to-one correspondence with screen pixels. In areas where the distinction is important, the dots in the image file may be called texels.
In computer programming, an image composed of pixels is known as a bitmapped image or a raster image. The word raster originates from analogue television technology. Bitmapped images are used to encode digital video and to produce computer-generated art.
Since the resolution of the computer display can be adjusted from the computer's operating system, a pixel is a purely relative measurement. The modern computer display is designed with a native resolution which refers to the perfect match between pixels and triads. The native resolution will produce the sharpest picture capable from the display. However since the user can adjust the resolution, the monitor must be capable of displaying the resolution, which is accomplished by drawing each pixel out of more than one triad. This process usually results in a fuzzy picture. For example, a display with a native resolution of 1280x1024 will look best set at 1280x1024 resolution, will display 800x600 adequately by drawing each pixel with more physical triads, and will be unable to display in 1600x1200 at all due to the lack of physical triads.
Usually a non-native resolution is better displayed on a CRT than on an LCD.
Pixels are either rectangular or square. A number called the aspect ratio describes the squareness of a pixel. For example, a 1.25:1 aspect ratio means that each pixel is 1.25 times wider than it is high. Pixels on computer monitors are usually square, but pixels used in digital video have non-square shapes, such as the D1 aspect ratio.
Each pixel in a monochrome image has its own brightness. Zero usually represents black, and the maximum value possible represents white. For example, in an eight-bit image, the maximum unsigned value that can be stored by eight bits is 255, so this is the value used for white.
In a colour image, each pixel has its own brightness and colour, usually represented as a triplet of red, green and blue intensities (see RGB). Full-colour LCD flat panels and CRT monitors use pixels made of 3 sub-pixelss.
The number of distinct colours that can be represented by a pixel depends on the number of bits per pixel (BPP). Common values are:
- 8 bpp (256 colours)
- 16 bpp (65,536 colours, known as Highcolour)
- 24 bpp (16,777,216 colours, known as Truecolour).
Images composed of 256 colours or fewer are usually stored in the computer's video memory in