Question and Answer
Question and Answer
Question and Answer
• Develop the geometric representation for the geometric objects of the images.
• Assemble these objects into an appropriate geometric space.
• Specify how the scene is to be viewed and how it will be displayed on the graphic
device.
• Define some animation for the image.
• Design a ways for the user to interact with the scene as it is presented.
9. Define Pixel.
Each screen point is referred to as a pixel or pel (Picture element).
15. Give an example of memory mapping for 5 X 5 resolution color display device?
• A computer graphics system is a computer system; that have all the components of a
general-purpose computer system.
• There are six major elements in our system:
• Input devices
• Central Processing Unit
• Graphics Processing Unit
• Memory
• Frame buffer
• Output devices
18. What is the difference between raster storage image and vector storage image?
Raster Image:
The images is considered as rectangular arrays of pixels, each pixel have different colors stored
as three numbers, for RGB. In a Monochrome system [black-and-white], each screen point is
either on (a bit value of 1) or off (a bit value of 0), so only one bit per pixel is needed to store
the intensity of screen positions.
Vector Image:
The image is stored as a set of instructions for displaying the.
• Are often used for text, diagrams, mechanical drawings, and other applications where
precision are important and photographic images and complex shading aren’t needed.
19. List the operating characteristics for the video display systems based on the CRT
technology?
- A beam of electrons emitted by an electron gun, passes through focusing System and
deflection systems that direct the beam toward specified positions on the phosphor-coated
screen.
- The phosphor-coated screen then emits a small spot of light at each position contacted by
the electron beam.
- The light emitted by the phosphor fades very rapidly, the picture is redrawn by quickly
directing the electron beam back over the same points. This type of display is called a
refresh CRT.
Intersection of two wires, can control the corresponding element in the middle plate.
25. What do you mean by retracing? Define horizontal as well as vertical retracing.
- Retracing:
At the end of each scan line, the electron beam returns to the left side of the screen to begin
displaying the next scan line.
- Horizontal retrace
The return to the left of the screen, after refreshing each scan line.
- Vertical retrace
At the end of each frame, the electron beam returns to the top left corner of the screen
to begin the next frame.
31. Consider three different raster systems with resolutions of 640 x 480, 1280 x
1024, and 2560 x 2048.
a. What size is frame buffer (in bytes) for each of these systems to store 12 bits per
pixel?
Because eight bits constitute a byte, frame-buffer sizes of the systems are as follows:
640 x 480 x 12 bits / 8 = 450KB;
1280 x 1024 x 12 bits / 8 = 1920KB;
2560 x 2048 x 12 bits / 8 = 7680KB;
b. How much storage (in bytes) is required for each system if 24 bits per pixel are to
be stored?
Similarly, each of the above results is just doubled for 24 (12×2) bits of storage per pixel.
32. Q33.Consider two raster systems with the resolutions of 640 x 480 and 1280 x
1024.
a. How many pixels could be accessed per second in each of these systems by a
display controller that refreshes the screen at a rate of 60 frames per second?
Since 60 frames are refreshed per second.
Each frame consists of 640 x 480 pixels,
- The access rate of such a system = (640 x 480) * 60 = 1.8432 x 107 pixels/second.
For the 1280 x 1024 system,
- The access rate is (1280 x 1024) * 60 = 7.86432 x 107 pixels/second.
b. What is the access time per pixel in each system?
The access time per pixel = 1/ access rate.
The access time is around 54 nanoseconds/pixel for the 640 x 480 system,
The access time is around 12.7 nanoseconds/pixel for the 1280×1024 system.
33. Consider a raster system with the resolution of 1024 x 768 pixels and the color
palette calls for 65,536 colors. What is the minimum amount of video RAM that the
computer must have to support the above-mentioned resolution and number of colors?
No of Colors = 65,536 colors
Number of bits per pixel = log 2 (65,536) =16-bit color.
The display’s resolution is 1024X768 pixels
Total Number of pixels = 786,432 (1024 × 768) pixels.
The total number of bits required
= 786,432 × 16 = 12,582,912 Bits = 1,572,864 bytes = 1,536 KB = 1.5 MB
34. How Many k bytes does a frame buffer needs in a 600 x 400 pixel?
35. Q38. How much time is spent scanning across each row of pixels during screen
refresh on a raster system with resolution of 1280 X 1024 and a refresh rate of 60
frames per second?
Resolution = 1280 X 1024
That means system contains 1024 scan lines and each scan line contains 128 pixels
Refresh rate = 60 frame/sec.
1 frame takes = 1/60 sec = 0.01666 sec.
1 frame buffer consist of 1024 scan lines (It means then 1024 scan lines takes 0.01666 sec) 1
1 scan line takes = 0.01666 /1024 = 10.6 𝜇sec
36. Suppose RGB raster system is to be designed using on 8 inch X 10 inch screen with
a resolution of 100 pixels per inch in each direction. If we want to store 6 bits per pixel
in the frame buffer, how much storage (in bytes) do we need for frame buffer?
38. Consider three different raster systems with resolutions of 640 by 480, 1280 by
1024, and 2560 by 2048. What size frame buffer (in bytes) is needed for each of these
systems to store 12 bits per pixel? How much storage is required for each system if 24
bits per pixel are to be stored?
39. How long does it take to load a 640-by-480 frame buffer with 12 bits per pixel, if
105 bits can be transferred per second?
Let X the time that will be taken to load a 640-by-480 frame buffer with 12 bits per pixel.
Number of bits = 640 * 480 * 12 = 3686400 bits
1 sec X 105 bits
X sec(s) X 3686400 bits
Then X = 3686400/105 = 36.864 second
40. How much time is spent in scanning across each row of pixels during screen
refresh on a raster system with a resolution of 1280 by 1024 and refresh rate of 60
frames per second?
41. Suppose we have a video monitor with a display area with 12 inches width and 9.6
inches high. If the resolution is 1280 X 1024 and the aspect ratio is 1, what are the
width and the height of each point on the screen?
42. How long would it take to load a 640-by-480 frame buffer with 12 bits per pixel, if
105 bits can be transferred per second? How long would it take to load a 24-bit-per-
pixel frame buffer with a resolution of 1280 by 1024 using this same transfer rate?
Total number of bits for the frame = 640 x 480 x 12 bits = 3686400 bits
The time needed to load the frame buffer = 3686400 / 105 sec = 36.864 sec
Total number of bits for the frame = 1280 x 1024 x 24 bits = 31457280 bits
The time needed to load the frame buffer = 31457280 / 105 sec = 314.5728 sec
43. Suppose an RGB raster system is to be designed using an 8-inch by 10-inch screen
with a resolution of 100 pixels per inch in each direction. If we want to store 6 bits per
pixel in the frame buffer, how much storage bytes do we need for the frame buffer?
• Setpixel(x, y, color) - Sets the pixel at position (x, y) to the given color.
• Getpixel(x, y): Gets the color at the pixel at position (x, y).
y = mx + c
where m is the gradient of the line:
∆y yfrom − yto
m= =
∆x xfrom − xto
and c is its intercept of the y-axis
c = yfrom − m xfrom
4. Write pseudo code for applying the algorithm.
5. Using the Brute force algorithm to digitize a line with end points (20, 10) and (26,
14).
6. Digitize a line with end points (20, 10) and (30, 18).
7. Write the algorithm of the line drawing algorithm using Digital Differential
Analyzer (DDA).
8. Using the DDA algorithm digitize a line with end points (10,15) and (15,30).
9. Digitize a line with end points (20, 10) and (30, 18) using DDA line drawing
Algorithm.
10. Implement the DDA algorithm to draw a line from (0,0) to (6,6).
M=(6-0)/(6-0)=6/6 =1 XK+1=Xk+1 YK+1=Yk+m = Yk+1 Xk=0 Yk=0
11. The process of drawing circle using Brute force method can be enhanced by
taking greater advantage of the symmetry in a circle.
2. Discuss the difference between the rotation about the origin and the rotation about
a local point.
3. Rotate a triangle A(0,0), B(2,2) , C(4,2) about the origin and about P(-2,-2) by an
angle of 45 degree.
5. Find the matrix that represents rotation of an object by 45o about the origin. a. What
are the new coordinates of the point P (2, -4) after the rotation?
6. A triangle is defined by
9. Find the transformation matrix that transforms the square ABCD whose center is at
(2, 2) is reduced to half of its size, with center still remaining at (2, 2). The coordinate
of square ABCD are A (0, 0), B (0, 4), C (4, 4) and D (4, 0). Find the co-ordinate of new
square.
Ans. (HINT: - After scaling the square to half of its size, the new translated square will have
center at (1, 1) so, translate again the new square by (1, 1), so that center again reach to (2,
2).)
10. Consider the square A (1, 0), B (0, 0), C (0, 1), D (1, 1). Rotate the square ABCD
by 45 degree clockwise about A (1, 0).
HINT:-
- First, translate the square by Tx= -1 and Ty=0.
- Then rotate the square by 45 degree.
- Again translate the square by TX=1 and Ty=0.
11. Magnify the triangle with vertices A (0, 0), B (1, 1) and C (5, 2) to twice its size
while keeping C (5, 2) fixed.
Ans. HINT:-
1) First, translate the triangle by Tx= -5 and Ty=-2
2) Then magnify the triangle by twice its size
3) Again translate the triangle by Tx= 5 and Ty= 2.