Oj C-
-1
Roll Number:
Thapar Institute of Engineering and Technology, Patiala
Department of Computer Science & Engineering
MCA (1st Semester), MST MCA101: Computer Graphics
Oct 05, 2023, 08:00 -10:00 Hrs
Time: 02 Hours; MM: 35 Name of Faculty: Dr. Rajkumar
Tekchandani
Note: Attempt all questions. Write to the point. Assume missing data if any.
Ql. (a) Explain image's aspect ratio? Can a 5 x 3 —12 inch image be (3)
4
presented at 6 x 4 inch without introducing geometric distortion?
Justify your answer.
(b) What do you mean by dpi? An image is of size 1024 *1024. If the (3)
system supports 24-bit true colors (ROB), how many megabytes are
needed to store the image?
(c) What do you mean by refresh rate of a screen? What is the refresh (1)
rate of a raster scan display?
Q2. (a) Explain DDA algorithm for Imi<=1 and iml>1? What are the (3)
limitations of DDA algorithm?
(b) Scan convert a line from pixel coordinate (2,3) to (8,7) on raster (4)
screen using Bresenham's line drawing algorithm. Show your
calculations for decision parameters and pixel positions.
Q3. (a) Show the symmetric points corresponding to (x,y) on a circle. When (3)
symmetry is used to obtain a full circle some of the pixels are plotted
twice. Write down the location of those pixels.
(b) Digitize the pixels of circle, centered at (5,5) and having a radius of (4)
r = 5 units using Mid point circle drawing algorithm. Show pixel
positions and calculations for decision parameters for first octet only
(y>x).
Q4. (a) Discuss the advantages of using Homogeneous coordinate system in (3)
2-D? Apply homogeneous matrix for rotation in anticlockwise
direction of a point (2,3) with an angle of "30°" with respect to origin
(0,0) in two dimensional coordinate system? Find the new
coordinates after rotation.
(b) A triangle A(5,4), B(8,3) and C(8,8) is defined using the (4)
5 8 8
homogeneous transformation matrix as 4 3 8 . Perform the 2-D
1 1 1
transformations on triangle ABC in the following sequence;
i. First, Translate by translation factors as tx 3 and ty = 3.
ii. After Translation, scale by scaling factors as sx = 2 and sy = 2.
Find the final coordinates of triangle ABC.
Q5.(a) Find the magnitude of slope on ellipse in terms of dy — and derive the
dx
(4)
base decision parameter for the first region of the ellipse in Mid point
ellipse drawing algorithm.
(b) Explain Direct color coding scheme using simple 3 bit plane buffer.
(3)
What do you mean by gray scale in that? Find the CMY coordinates
of a color at (0.2, 1, 0.5) in the ROB space.