Module 1-Complete PDF
Module 1-Complete PDF
• Disadvantages:
• Low Resolution
• Expensive
Mod 1-part 3
RANDOM SCAN (VECTOR SCAN)
• In this technique, the electron beam is directed
only to the part of the screen where the picture is
to be drawn rather than scanning from left to
right and top to bottom as in raster scan. It is also
called vector display, stroke-writing display, or
calligraphic display.
• Picture definition is stored as a set of line-
drawing commands in an area of memory
referred to as the refresh display file, display list,
display program or simply refresh buffer.
• To display a specified picture, the system cycles
through the set of commands in the display file,
drawing each component line in turn.
• After all the line-drawing commands are
processed, the system cycles back to the first line
command in the list.
• Random-scan displays are designed to draw all
the component lines of a picture 30 to 60 times
each second.
• Random-scan systems are designed for line-drawing
applications and cannot display realistic scenes.
• Since picture definition is stored as a set of line-
drawing instructions and not as a set of intensity values
for all screen points, vector displays generally have
higher resolution than raster systems.
• Also, vector displays produce smooth line drawings
because the CRT beam directly follows the line path.
• A raster system, in contrast, produces jagged lines that
are plotted as discrete point sets.
• Advantages:
• A CRT has the electron beam directed only to the parts
of the screen where an image is to be drawn.
• Produce smooth line drawings.
• High Resolution
• Disadvantages:
1. Random-Scan monitors cannot display realistic shades
scenes.
Architecture of Random Scan Systems
5. Refresh rate depends on resolution 5. Refresh rate does not depend on the
picture.
6. Only screen with view on an area is displayed. 6. Whole screen is scanned.
7. Beam Penetration technology come under it. 7. Shadow mark technology came under this.
applications
Line Drawing Line
P2 = (10, 19)
P3 = (11, 20)
P4 = (12, 20)
P5 = (13, 21)
P6 = (14, 22)
• Step 5: Stop.
The Coordinates of drawn lines are-
• P1 = (9, 18)
• P2 = (10, 19)
• P3 = (11, 20)
• P4 = (12, 20)
• P5 = (13, 21)
• P6 = (14, 22)
Bresenham’s Line Drawing Algorithm DDA Line Drawing Algorithm
It uses fixed point arithmetic. It uses floating point operations.
It uses only addition and subtraction in It uses multiplication and division in its
its
operators.
Operators
It is faster than DDA It is slower than Bresenham’s algorithm.
Step-02:
• Calculate the value of initial decision parameter
P0 as-
• P0 = 1 – R
• Step-03:
• Suppose the current point is (Xk, Yk) and the
next point is (Xk+1, Yk+1).
• Find the next point of the first octant
depending on the value of decision parameter
Pk.
• Follow the below two cases-
Step-04:
• If the given centre point (X0, Y0) is not (0, 0), then do the following
and plot the point-
• Xplot = Xc + X0
• Yplot = Yc + Y0
Step-01:
Assign the starting point coordinates (X0, Y0) as-
• X0 = 0
• Y0 = R
Step-02:
• Calculate the value of initial decision parameter
P0 as-
• P0 = 3 – 2 x R
Step-03:
Suppose the current point is (Xk, Yk) and the next
point is (Xk+1, Yk+1).
Find the next point of the first octant depending on
the value of decision parameter Pk.
• Follow the below two cases-
Step-04:
• If the given centre point (X0, Y0) is not (0, 0),
then do the following and plot the point-
Xplot = Xc + X0
Yplot = Yc + Y0
• Here, (Xc, Yc) denotes the current value of X
and Y coordinates.
• Step-05:
• Keep repeating Step-03 and Step-04 until
Xplot => Yplot.
• Step-06:
• Step-05 generates all the points for one
octant.
• To find the points for other seven octants,
follow the eight symmetry property of circle.
Problem-01:
Given the centre point coordinates (0, 0) and
radius as 8, generate all the points to form a
circle.
solution
Given-
Centre Coordinates of Circle (X0, Y0) = (0, 0)
Radius of Circle = 8
Step-01:
Assign the starting point coordinates (X0, Y0) as-
X0 = 0
Y0 = R = 8
Step-02:
Calculate the value of initial decision parameter
P0 as-
P0 = 3 – 2 x R
P0 = 3 – 2 x 8
P0 = -13
• Step-03:
As Pinitial < 0, so case-01 is satisfied.
Thus,
Xk+1 = Xk + 1 = 0 + 1 = 1
Yk+1 = Yk = 8
Pk+1 = Pk + 4 x Xk+1 + 6 = -13 + (4 x 1) + 6 = -3
Step-04:
This step is not applicable here as the given
centre point coordinates is (0, 0).
Step-05: