Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Roll Number:

i••• 'Thapar• Inseinee of Eagineering and Technology, Pellicle. .


Deptt.rrnent of Computer Science & Engineering
MCA (l." Sentestei) MVP' MCA,1:01: Computer,tpropiucs
Sep 29, 2022 , •
Time: 02 -1-loui-s;MINk 25 Name of Faculty: Dr. Ritigurnar
Tekchandani
'Note.: Attempt alt quest:vbs. Assume missing data if any. . •
(a; Derive the excision parameters for Bresenham's line drawing .(3)
algorithm for slope Iml 5 1.
(b) Digitize a line from pixel coordinate (1.1) to (8.5) on raster screen (3)
using 3resenham's line drawing algorithm. Show your calculations
for decision parameters and pixel positions.

Q2. (a) What is an image's aspect ratio? If the size of an image is 3 x 2 (2)
inches and resolution is 300 ppi, what are the total number of pixels
in an image?
(b) Consider a raster system with resolution of 2560 x 2048.. It' the ( )
system supports 24 hit true colour (RGB) per pixel. How many
bytes are needed to store the image?
(c) If we use direct color coding scheme as 5 bits each for red and ( )
green and 6 hits for blue for a total of 16 bits per pixel, how many
possiblf, simultaneous colors do we have?

Q3. (a) During scan converting a circle centered at origin (0.0) using 8-way.
symmeirY, if the point (x,y) is (2,8) in one region. then what would.
be the corresponding seven points after reflection of (2,8) with
respect tc x -- axis. y — axis. y = x axis and y = — x axis?
(b) Plot the pixels of circle in first octant (y > x). centered at (2.5) and, )
having a radius of r --- 7 units using mid point circle drawing
algorithm. Show pixel positions and calculations for decision
parameters.
(c) Derive-the 'equation fo, ellipse slope in terms ofdfil;•CLI3S . .
how _soope of the curve changes monotonically from one reg.,ior,to. ,:
other in Mid point ellipse drawing algorithm?

Q4. (a) Define transformations •;i1 2-D. Derive the matrix of rotation by ,an (3)
angle of "6" in anticlockwise direcOn.
(b) Peru= t(lowing transformations on a point (6.4) in sequence., (3)
i. Translate by t, = - 2 and ty = 4.
ii. Then, scwe by s, t ane y = 1.
fur:.11y, rotate by 90° in clockwise direction. Determine
the final coaidinates oi' the transformed no;nt.

•(5. • t;•deer .t1 and random scarf displp,floystems.,

You might also like