0% found this document useful (0 votes)
25 views

Model

This document contains a final exam for a Multimedia Programming course consisting of 4 questions. Question 1 defines multimedia and its characteristics, and describes two techniques for producing color displays. Question 2 provides the Bresenham's line drawing algorithm and applies it to a line segment. Question 3 calculates pixel positions on circles using the midpoint and Bresenham's algorithms. Question 4 involves translating and scaling a polygon by given amounts.

Uploaded by

Suraj Shrestha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Model

This document contains a final exam for a Multimedia Programming course consisting of 4 questions. Question 1 defines multimedia and its characteristics, and describes two techniques for producing color displays. Question 2 provides the Bresenham's line drawing algorithm and applies it to a line segment. Question 3 calculates pixel positions on circles using the midpoint and Bresenham's algorithms. Question 4 involves translating and scaling a polygon by given amounts.

Uploaded by

Suraj Shrestha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Jan. – Apr.

2021 Final Examination CC206 Multimedia Programming

Answer ALL questions

Question 1
(a) Define the term multimedia and what are characteristics of multimedia
(10 marks)

Multimedia is the use of a computer to present and combine text, graphics,


audio, and video with links and tools that let the user navigate, interact, create,
and communicate. [4]
Four characteristics of multimedia systems
• Multimedia systems must be computer controlled [6]
• They are integrated
• The information they handle must be represented digitally
• The interface to the final user may permit interactivity

(b) What are the two basic techniques for producing color displays? Explain each
technique with a diagram (15 marks)

1. Beam Penetration Method: [7]


The Beam-Penetration method has been used with random-scan monitors. In
this method, the CRT screen is coated with two layers of phosphor, red and
green and the displayed color depends on how far the electron beam penetrates
the phosphor layers. This method produces four colors only, red, green, orange
and yellow. A beam of slow electrons excites the outer red layer only; hence
screen shows red color only. A beam of high-speed electrons excites the inner
green layer. Thus screen shows a green color.

2. Shadow-Mask Method: [8]


Shadow Mask Method is commonly used in Raster-Scan System because they
produce a much wider range of colors than the beam-penetration method.
It is used in the majority of color TV sets and monitors.
Construction: A shadow mask CRT has 3 phosphor color dots at each pixel
position.

1 of 5
Jan. – Apr. 2021 Final Examination CC206 Multimedia Programming

This type of CRT has 3 electron guns, one for each color dot and a shadow
mask grid just behind the phosphor coated screen.

Shadow mask grid is pierced with small round holes in a triangular pattern.

Figure shows the delta-delta shadow mask method commonly used in color
CRT system.

Question 2
Write the Bersenham’s line drawing algorithm and generate all raster points on the line
segment for the points(10,20) and (18,30). (25 marks)

Step 1 : x=x1 , y=y1


Step 2 : dx=x2-x1; dy=y2-y1;
Step 3: p=2*dy-dx;
Step 4: while(x<x2)
{
putpixel(x,y);
x++;
If(p<0)
P=p+2*dy;
Step 5 : else
{
P=p+2*dy-2*dx
y++;
}}
Step 6: Stop

2 of 5
Jan. – Apr. 2021 Final Examination CC206 Multimedia Programming

x y
10 20
11 21
12 22
12 13
13 24
14 25
15 26
16 27
16 28
17 29
18 30

[Total: 25 Marks]

Question 3
(a) Calculate the pixel position along the circle path with radius r=10 centered on the
origin (0,0) using midpoint circle drawing algorithm upto x=y. (12 marks)

x y p x + xc y + yc
0 10 -8.75 0 10
1 10 -4.75 1 10
2 10 1.25 2 10
3 9 -9.75 3 9
4 9 0.25 4 9
5 8 -4.75 5 8
6 8 9.25 6 8
7 7 10.25 7 7

(b) Calculate the pixel position along the circle path with radius r= 10 centered on the
origin (0,0) using Bersanham’s circle drawing alogithm from points (0,10) to
x=y. (13 marks)

3 of 5
Jan. – Apr. 2021 Final Examination CC206 Multimedia Programming

x y
0 10
1 10
2 10
3 10
4 9
5 9
6 8
7 7

[Total: 25 Marks]

Question 4
(a) Translate a polygon with coordinates A(2,5), B(7,10) and C(10,2) by 3 units in x
direction and 4 units in y direction (10 marks)

4 of 5
Jan. – Apr. 2021 Final Examination CC206 Multimedia Programming

(b) Scale the polygon with coordinates A(2,5),B(7,10) and C(10,2) by 2 units in x
direction and 2 units in y direction, also draw the polygon before scaling and after
scaling (15 marks)

5 of 5
Jan. – Apr. 2021 Final Examination CC206 Multimedia Programming

END OF ANSWER SCHEMA

6 of 5

You might also like