COMPUTER SCIENCE AND ENGINEERING
COMPUTER GRAPHICS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
path
|
|
resolution
|
|
Both a and b
|
|
all of the above
|
Detailed explanation-1: -initgraph initializes the graphics system by loading a graphics driver from disk (or validating a registered driver), and putting the system into graphics mode. To start the graphics system, first call the initgraph function.
Detailed explanation-2: -To initialize the graphics hardware, we have to use function initgraph(). It has three parameters. The first one is gdriver. It tells the program what driver is available in the computer. Sometimes we may not know which driver is present in the computer.
Detailed explanation-3: -Graphics options are used in c-programming to draw different graphical shapes. First of all we have to call the initgraph() function that will initialize the graphics mode on the computer. initgraph(&gdriver, &gmode, “path to driver”);
Detailed explanation-4: -closegraph() function in C h contains closegraph() function which closes the graphics mode, deallocates all memory allocated by graphics system and restores the screen to the mode it was in before you called initgraph. Syntax : void closegraph();