SlideShare a Scribd company logo
3
Most read
6
Most read
7
Most read
Raster Scan Graphics
Presented by
Asst. Prof. Aparna Joshi
Rasterization
• The process of determining which pixel will
provide the best approximation to the desired
line is known as ‘Rasterization’.
Characteristics of Line Drawing Algorithm
• The line should appear straight.
• Displayed line should have constant brightness
along their length.
• The line should be start and end accurately.
• Lines should have constant density,.
• Line density should be independent of line
length and angle.
• Lines should be drawn rapidly.
DDA Line Drawing Algorithm
1. Read the line end points (x1, y1) & (x2, y2) such
that they are not equal. (If equal then plot
that single point and exit) .
2. Approximate the line length,
If absolute (x2-x1) >= absolute (y2-y1)
then length = absolute (x2-x1)
else length = absolute (y2-y1)
3.
DDA Line Drawing Algorithm
4. Using the sign function, make the algorithm work in all quadrant
x = x1+0.5 * sign ( ∆x)
y = y1 + 0.5 * sign (y)
Here, x1 & y1 are initial values.
5. Begin main loop
i = 1
while (i < = length)
{
plot (integer (x), Integer (y))
x= x+x
y = y+y
i = i + 1
} end while
6. Finish / Stop
DDA Line Drawing Algorithm
Advantages:
• It is the simplest algorithm & it does not require special skills for
implementation.
• It is a faster method for calculating pixel positions than the direct
use of equation y = m.x + b
• It eliminates the multiplication in the equation by making use of
raster characteristics, so that appropriate increments are applied in
the x or y direction to find the pixel positions along the line path.
• It is very easy to understand and implement.
Disadvantages:
• Floating point arithmetic in DDA algorithm is still time-consuming.
• The algorithm is orientation dependent. Hence end point accuracy is
poor.
• It drifts away from the actual line path because of rounding off float
values into integer.
Bresenham’s Line Drawing Algorithm
Circle Drawing Algorithm
Eight-way Symmetry of a Circle
Bresenham’s Circle Drawing Algorithm
Midpoint Circle Algorithm
Thank You

More Related Content

PPTX
Concept of basic illumination model
PPTX
Matrix representation- CG.pptx
PDF
Unit 3
PPTX
Anti- aliasing computer graphics
PPT
Composite transformations
PPT
Circle drawing algo.
PPTX
3D transformation in computer graphics
PPT
Polygon clipping
Concept of basic illumination model
Matrix representation- CG.pptx
Unit 3
Anti- aliasing computer graphics
Composite transformations
Circle drawing algo.
3D transformation in computer graphics
Polygon clipping

What's hot (20)

PPTX
Output primitives in Computer Graphics
PPTX
Graphics_3D viewing
PPT
3 d viewing
PPTX
Window to viewport transformation&amp;matrix representation of homogeneous co...
PPTX
Color Models.pptx
PPTX
PPTX
2d-transformation
PPTX
Computer Graphics: Visible surface detection methods
PPTX
Mid point circle algorithm
PPTX
2 d viewing computer graphics
PPTX
Object tracking
PPTX
line attributes.pptx
PDF
Lecture 06 geometric transformations and image registration
PPT
PPT
Clipping in Computer Graphics
PPTX
Hough Transform By Md.Nazmul Islam
PPTX
Back face detection
PPTX
3 d display methods
PPTX
Image enhancement lecture
Output primitives in Computer Graphics
Graphics_3D viewing
3 d viewing
Window to viewport transformation&amp;matrix representation of homogeneous co...
Color Models.pptx
2d-transformation
Computer Graphics: Visible surface detection methods
Mid point circle algorithm
2 d viewing computer graphics
Object tracking
line attributes.pptx
Lecture 06 geometric transformations and image registration
Clipping in Computer Graphics
Hough Transform By Md.Nazmul Islam
Back face detection
3 d display methods
Image enhancement lecture
Ad

Similar to Raster Scan Graphics, Line Drawing Algorithm and Circle Drawing Algorithm (20)

PPTX
Chapter 3 - Part 1 [Autosaved].pptx
PPTX
DDA-line-drawing-algorithm.pptx
PPTX
dda-line-algorithm.pptx of computer graphics
PPTX
Computer Graphics - Introduction in Brief By: Prof. Manisha Waghmare- Butkar
PPTX
4 CG_U1_M3_PPT_4 DDA.pptx
PPTX
DDA algorithm
PPT
Bresenham circles and polygons derication
PPT
Bresenham circlesandpolygons
PPTX
Study on Fundamentals of Raster Scan Graphics
PDF
raster algorithm.pdf
PPTX
Dda algorithm
PDF
Chapter 2 Computer graphics by Kushal Bhattarai
PPT
Lecture _Line Scan Conversion.ppt
PDF
Computer graphics notes 2 tutorials duniya
PPTX
CGA is a creation and manipulation of image or picture with the help of compu...
PPT
Line drawing algorithm and antialiasing techniques
PPT
03.Scan Conversion.ppt
PPTX
Line Drawing Algorithms - Computer Graphics - Notes
PDF
Notes_456_Lines_Drawing2_4 (1).pdf
PDF
cgrchapter2version-1-200729063505 (1).pdf
Chapter 3 - Part 1 [Autosaved].pptx
DDA-line-drawing-algorithm.pptx
dda-line-algorithm.pptx of computer graphics
Computer Graphics - Introduction in Brief By: Prof. Manisha Waghmare- Butkar
4 CG_U1_M3_PPT_4 DDA.pptx
DDA algorithm
Bresenham circles and polygons derication
Bresenham circlesandpolygons
Study on Fundamentals of Raster Scan Graphics
raster algorithm.pdf
Dda algorithm
Chapter 2 Computer graphics by Kushal Bhattarai
Lecture _Line Scan Conversion.ppt
Computer graphics notes 2 tutorials duniya
CGA is a creation and manipulation of image or picture with the help of compu...
Line drawing algorithm and antialiasing techniques
03.Scan Conversion.ppt
Line Drawing Algorithms - Computer Graphics - Notes
Notes_456_Lines_Drawing2_4 (1).pdf
cgrchapter2version-1-200729063505 (1).pdf
Ad

Recently uploaded (20)

PDF
Biophysics 2.pdffffffffffffffffffffffffff
PPTX
Derivatives of integument scales, beaks, horns,.pptx
PPTX
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
PPTX
BIOMOLECULES PPT........................
PDF
The scientific heritage No 166 (166) (2025)
PDF
CAPERS-LRD-z9:AGas-enshroudedLittleRedDotHostingaBroad-lineActive GalacticNuc...
PDF
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
PPTX
ognitive-behavioral therapy, mindfulness-based approaches, coping skills trai...
PDF
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
PPTX
INTRODUCTION TO EVS | Concept of sustainability
PPTX
neck nodes and dissection types and lymph nodes levels
PPTX
Cell Membrane: Structure, Composition & Functions
PDF
An interstellar mission to test astrophysical black holes
PPTX
DRUG THERAPY FOR SHOCK gjjjgfhhhhh.pptx.
PPTX
2Systematics of Living Organisms t-.pptx
PPT
POSITIONING IN OPERATION THEATRE ROOM.ppt
PPTX
EPIDURAL ANESTHESIA ANATOMY AND PHYSIOLOGY.pptx
PPTX
Taita Taveta Laboratory Technician Workshop Presentation.pptx
PPTX
GEN. BIO 1 - CELL TYPES & CELL MODIFICATIONS
PDF
Sciences of Europe No 170 (2025)
Biophysics 2.pdffffffffffffffffffffffffff
Derivatives of integument scales, beaks, horns,.pptx
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
BIOMOLECULES PPT........................
The scientific heritage No 166 (166) (2025)
CAPERS-LRD-z9:AGas-enshroudedLittleRedDotHostingaBroad-lineActive GalacticNuc...
Formation of Supersonic Turbulence in the Primordial Star-forming Cloud
ognitive-behavioral therapy, mindfulness-based approaches, coping skills trai...
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
INTRODUCTION TO EVS | Concept of sustainability
neck nodes and dissection types and lymph nodes levels
Cell Membrane: Structure, Composition & Functions
An interstellar mission to test astrophysical black holes
DRUG THERAPY FOR SHOCK gjjjgfhhhhh.pptx.
2Systematics of Living Organisms t-.pptx
POSITIONING IN OPERATION THEATRE ROOM.ppt
EPIDURAL ANESTHESIA ANATOMY AND PHYSIOLOGY.pptx
Taita Taveta Laboratory Technician Workshop Presentation.pptx
GEN. BIO 1 - CELL TYPES & CELL MODIFICATIONS
Sciences of Europe No 170 (2025)

Raster Scan Graphics, Line Drawing Algorithm and Circle Drawing Algorithm

  • 1. Raster Scan Graphics Presented by Asst. Prof. Aparna Joshi
  • 2. Rasterization • The process of determining which pixel will provide the best approximation to the desired line is known as ‘Rasterization’.
  • 3. Characteristics of Line Drawing Algorithm • The line should appear straight. • Displayed line should have constant brightness along their length. • The line should be start and end accurately. • Lines should have constant density,. • Line density should be independent of line length and angle. • Lines should be drawn rapidly.
  • 4. DDA Line Drawing Algorithm 1. Read the line end points (x1, y1) & (x2, y2) such that they are not equal. (If equal then plot that single point and exit) . 2. Approximate the line length, If absolute (x2-x1) >= absolute (y2-y1) then length = absolute (x2-x1) else length = absolute (y2-y1) 3.
  • 5. DDA Line Drawing Algorithm 4. Using the sign function, make the algorithm work in all quadrant x = x1+0.5 * sign ( ∆x) y = y1 + 0.5 * sign (y) Here, x1 & y1 are initial values. 5. Begin main loop i = 1 while (i < = length) { plot (integer (x), Integer (y)) x= x+x y = y+y i = i + 1 } end while 6. Finish / Stop
  • 6. DDA Line Drawing Algorithm Advantages: • It is the simplest algorithm & it does not require special skills for implementation. • It is a faster method for calculating pixel positions than the direct use of equation y = m.x + b • It eliminates the multiplication in the equation by making use of raster characteristics, so that appropriate increments are applied in the x or y direction to find the pixel positions along the line path. • It is very easy to understand and implement. Disadvantages: • Floating point arithmetic in DDA algorithm is still time-consuming. • The algorithm is orientation dependent. Hence end point accuracy is poor. • It drifts away from the actual line path because of rounding off float values into integer.