2. Disclaimer
This is NOT A COPYRIGHT MATERIAL
Content has been taken mainly from the following books & websites:
Computer Graphics C Version By Donald Hearn, M. Pauline Baker
Schaum's outline of theory and problems of computer graphics By Zhigang Xiang, Roy A. Plastock
Computer Graphics: Principles and Practice By James D. Foley
http://en.wikipedia.org/wiki/Computer_graphics
http://www.howstuffworks.com/3dgraphics.htm
http://www.graphics.cornell.edu/online/tutorial/
http://www.cgarena.com/
etc…
Vinay Arora
CSED
4. Primitives
2-D Drawing or a 3-D Object consist of Graphical Primitives such as
Points, Lines, Circles & Filled Polygons.
Graphics System or the Application Program convert each primitive
from its geometric definition into a set of Pixels that make up the
primitive in the Image Space.
This Conversion is referred to as SCAN CONVERSION or
RASTERIZATION.
Vinay Arora
CSED
5. Definitions
RASTERIZATION: Process of determining which pixels provide the best
approximation to a desired line on the screen.
SCAN CONVERSION: Combination of rasterization and generating the
picture in scan line order.
Vinay Arora
CSED
6. General Requirement
Straight lines must appear as straight lines.
They must start and end accurately.
Lines should have constant brightness along their length.
Lines should drawn rapidly.
Vinay Arora
CSED
8. For horizontal, vertical and 45º lines, the choice of raster elements is
obvious. This lines exhibit constant brightness along the length:
Vinay Arora
CSED
9. For any other orientation the choice is more difficult:
Vinay Arora
CSED
10. Intersection Points
In general Line doesn’t pass through Intersection Points.
Points are very close & dense that’s why – it appears as Straight Line.
We have to find Addressable Pixels.
Points Distributed over the line & the most closest to the line.
No Addressable Pixel is having any Floating Point number/value.
Vinay Arora
CSED