Nepedia
Back to Discover
Fluent Reader
💻

Raster graphics

technology Maturity 7-9 Next article →

A raster graphic is a digital image made of a grid. This grid is made of tiny colored squares called pixels.

Rgb-raster-image
Rgb-raster-image

Each pixel is a single unit of color. Raster images are perfect for photographs because they show complex details. They store the exact color for every single pixel in the grid. This is different from vector graphics, which use math to draw lines. Raster images are defined by their width and height in pixels. This size is often called the resolution.

Raster graphic fish 20x23squares sdtv-example
Raster graphic fish 20x23squares sdtv-example

To make an image, the computer follows a specific way it works. It uses a two-dimensional array to organize the pixels. Most color images use the RGB color model to create shades. This uses red, green, and blue light to make colors. Each color channel often uses 8 bits of data. This allows for over 16 million different colors in one image. When saving a file, the computer uses a row-major format. It lists all the pixels in the first row from left to right. Then, it moves immediately to the second row.

The use of a raster data structure to summarize a point pattern
The use of a raster data structure to summarize a point pattern

People have used these ideas for a long time. The word "raster" comes from the Latin word "rastrum," which means a rake. This name comes from how old monitors worked. They used an electron beam to scan the screen line by line. In the late 1960s, A. Michael Noll invented an early scanned display. He worked at Bell Labs on this invention. He filed a patent for it in February 1970. Later, in 1977, a legal issue happened at the Supreme Court. This case involved whether computer software could be patented.

There are many ways to handle these large files. High-resolution grids take up a lot of storage space. Because of this, computers use compression to make files smaller. Some methods are called lossless, so the image stays perfect. Others are called lossy, which means the computer makes an estimate. Common file types you see online include JPEG, PNG, and GIF.

Matrix transpose
Matrix transpose

Some very large sensors can capture huge amounts of data. The Vera C. Rubin Observatory uses a sensor with 3.2 gigapixels. This single image creates a file that is 6.4 GB in size.

You see raster graphics every single day. Most modern flat-panel LED monitors use this approach. They refresh the screen by scanning through the pixels quickly. Almost all printers, like inkjet and laser printers, use raster grids too. Even medical tools like MRI scanners use a 3D version called voxels. In geography, people use grids to map things like temperature. Each pixel represents a specific spot on the Earth's surface. Whether you are playing a video game or looking at a photo, you are seeing a raster.

452 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (4)
File:Rgb-raster-image.svg
Rgb-raster-image.svg
File:Matrix transpose.gif
Matrix transpose.gif
File:Raster graphic fish 20x23squares sdtv-example.png
Raster graphic fish 20x23squares sdtv-example.png
File:The use of a raster data structure to summarize a point pattern.png
The use of a raster data structure to...
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.