Go to previous pageGo to next page

1.3.4. Unit-Summary

On a raster display a line is drawn by colouring pixels. Since the pixels are centered around the grid points, we have to approximate the line by intensifying the grid-point pixels lying on the line or nearest to it.

There are various algorithms to find the pixels that approximate best the line. Which algorithm have to be applied depends on the slope of the line.

The algorithm for filling polygons contains two steps:

  • Computing the intersections for each scan line
  • Filling the polygon alternately between the intersections.


Go to previous page
Go to next page