Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
5th sem solved Assignment for Graphics and Multimedia kuvempu university

5th sem solved Assignment for Graphics and Multimedia kuvempu university

Ratings: (0)|Views: 963|Likes:
Published by gulanchi
5th sem, solved, Assignment, for Graphics, and Multimedia, kuvempu, university niit, exem
5th sem, solved, Assignment, for Graphics, and Multimedia, kuvempu, university niit, exem

More info:

Categories:Types, School Work
Published by: gulanchi on May 30, 2013
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





K u v e m p u U n i v e r s i t y
Assignments for B.Sc.(IT) & M.Sc.(IT) Courses
Subject: Graphics & MultimediaSubject Code: BSIT – 51Prepared By: Rajiv Phukan
(ৰজৱ ফকন)
Pathsala (পঠশল)
Assignment: TA (Compulsory)
1.What is the meaning of interactive computer graphics? List the variousapplications of the computer graphics.
The term “interactive graphics” refers to devices and systems that facilitate the man-machine graphic communication, in a way, which is more convenient than the writingconvention. For example, to draw a straight line between two points, one has to input thecoordinates of the two end points. In interactive graphics with the help of graphical inputtechnique by indicating two end points on the display screen draws the line.
Various applications of the computer graphics are listed below :-
i). Building Design and Constructionii). Electronics Designiii). Mechanical Designiv). Entertainment and Animationv). Aerospace Industryvi). Medical Technologyvii). Cartographyviii). Art and Commerce.
2. Explain in detail the Hardware required for effective graphics on thecomputer system.
The hardware components required to generate interactive graphics are the input device,the outputdevice (usually display) and the computer system. The human operator is alsoan integral part of theinteractive system. The text and graphics displayed act as an input tothe human vision system and, therefore, the reaction of the human being will depend onhow quickly one can see and appreciate thegraphics present on the display.
3. Compare Raster scan system with random scan system.
In raster scan display, the electron beam is swept across the screen, one row at a timefrom top to bottom. The picture definition is stored in a memory area called refresh buffer 
or frame buffer. In random scan display unit, a CRT has the electron beam directed only tothe parts of the screen where a picture is to be drawn. It draws a picture one line at a timeand so it is referred to as vector displays.
Raster scan
The Most common type of graphics monitor employing a CRT is the raster-scan Display,based on television technology. In a raster- scan system; the electron beam is sweptacross the screen, one row at a time from top to bottom. The picture definition is stored ina memory area called the refresh buffer or frame buffer. Each point on the screen is calledpixel. On a black and system with one bit per pixel, the frame buffer is called bitmap. For systems with multiple bits per pixel, the frame buffer is referred to as a pix map.Refreshing on raster scan display is carried out at the rate of 60 to 80 frames per second.Some displays use interlaced refresh procedure. First, all points on the even numberedscan lines are displayed then all the points along odd numbered lines are displayed. Thisis an effective technique for avoiding flickering.
Random scan display
When operated as a random-scan display unit, a CRT has the electron beam directed onlyto the parts of the screen where a picture is to be drawn. Random scan monitors draw apicture one line at a time and for this reason they are also referred as vector displays (or stroke-writing or calligraphic displays). The component lines of a picture can be drawn andrefreshed by a random-scan system in any specified order. A pen plotter operates in asimilar way and is an example of a random-scan, hard-copy device.Refresh rate on a random-scan system depends on the number of lines to be displayed.Picture definition is now stored as a set of line- drawing commands in an area of memoryreferred to as the refresh display file. Sometimes the refresh display file is called thedisplay list, display program, or simply the refresh buffer.
4. How many colors are possible if 
a. 24 bits / pixel is used
b. 8 bits / pixel is used Justify your answer
a). 24 bit color provides 16.7 million colors per pixels, That 24 bits are divided into 3 bytes;one each for the read, green, and blue components of a pixel.
 b). 256, 8 bits per pixel = 2^8 colours.
Widely accepted industry standard uses 3 bytes, or 24 bits, per pixel, with one byte for each primary color results in 256 different intensity levels for each primary color. Thus apixel can take on a color from 256 X 256 X 256 or 16.7 million possible choices. In Bi-level imagerepresentation one bit per pixel is used to represent black-and white images. In gray levelimage 8 bits per pixel to allow a total of 256 intensity or gray levels. Image representationusing lookup table can be viewed as a compromise between our desire to have a lower storage requirement and our need to support a reasonably sufficient number of simultaneous colors.
5. List and explain different text mode built-in functions of CProgramming language.
The different text mode built-in functions of C Programming language are listed below :-
i). textmode( int mode);
This function sets the number of rows and columns of the screen, mode variable can takethe values 0, 1, 1, or 3.0: represents 40 column black and white1: represents 40 column color 2: represents 80 column black and white3: represents 80 column color Example: textmode(2); // sets the screen to 80 column black and white
ii). clrscr();
This function clears the entire screen and locates the cursor on the top left corner(1,1)Example clrscr(); // clears the screen
iii). gotoxy(int x, int y);
This function positions the cursor to the location specified by x and y. x represents the rownumber and y represents the column number.Example: gotoxy(10,20) // cursor is placed in 20th column of 10th row
iv). textbackground (int color);
This function changes the background color of the text mode. Valid colors for the CGA arefrom 0 to 6 namely BLACK, BLUE, GREEN, CYAN, RED, MAGENTA and BROWN.Example: textbackground(2); Or //changes background color to bluetextbackground(BLUE);
v). textcolor (int color);
This function sets the subsequent text color numbered between 0 to 15 and 128 for 

Activity (3)

You've already reviewed this. Edit your review.
Raj Kumar liked this
1 thousand reads
1 hundred reads

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->