For advertisement here, contact at:

Simple DDA !

Simple DDA - Choose a line length estimate that is equal to the max(deltax,deltay) in such a way that e(deltax) or e(deltay) is of unit magnitude. This implies that one of the counters is simply an increment by 1. That is, if e=1/(max(deltax,deltay)) then either e(deltax)=1 or e(deltay)=1.


procedure simpledda(x1,y1,x2,y2 : integer);

length, {maximum line length}
i:integer; {loop counter}
x,y, {x and y coordinate}
xincr,yincr: real; {Dx and Dy}
length := abs(x2-x1);
length := abs(y2-y1);
xincr := (x2-x1)/length;
yincr := (y2-y1)/length;
x := x1;
y := y1;
for i := 0 to length do
x := x + xincr;
y := y + yincr;

Back to

MCA Cource
KU's MCA Course


Survey of Computer Graphics Applications Interactive & Passive Graphics Introduction to GKS Primitives Display Processors

Graphic Devices

Display Systems-Refresh CRTs Raster Scan Monitors Random Scan Monitors Grey shades Interlacing Beam Penetration & Shadow Mask Monitors Look Up Tables Plasma Panel Flat-Panel Displays LED LCD VGA SVGA Hard Copy Devices Printers Plotters Interactive Input Devices Keyboard Mouse Digitizing Tablet Light Pen Touch Panels Image Scanners Voice systems Joy Stick Track Ball

Drawing Geometry

Coordinate System Resolution Homogeneous Coordinate System scan conversion DDA Symmetrical DDA Simple DDA Bresenhams Line Algorithm Circle Drawing Algorithm Polar Coordinates Bresenhams Circle Algorithm Ellipse

2-D Transformations

Transformations Translation Rotation Scaling Mirror Reflection Shearing Zooming Panning Postioning Pointing Rubber Band Methods Dragging Tweening

Graphic Operations

Clipping Points Clipping Line Clipping Sutherland-Cohen Algorithm Midpoint Sub-Division Algorithm Polygon Clipping Sutherland Hodgman Algorithm Window & Viewport Windowing Transformation Stack Based Fill Algorithm Scan-Line Seed Fill Algorithm

3-D Graphics

3D Modelling of Objects 3D display Techniques Coordinate System 3D Transformation Matrices For Translation, Scaling & Rotation Parallel Projection Perspective Projection Hidden Surface Removal Z-Buffer Back Face Scan-Line Depth-Sorting Area Subdivision Shading-Modelling Light Intensities Gouraud Shading Phong Shading


Hypertext or Hypermedia Multimedia Applications Authoring Hardware Components Windows paint brush

Post Your Answer

Post your answer at: