MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER GRAPHICS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
gd parameter in initgraph() method means
A
Graphic Display
B
Graphic Density
C
Graphic Driver
D
Graphic declaration
Explanation: 

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. initgraph loads the graphics driver and puts the system into graphics mode.

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: -graphicsDriver : It is a pointer to an integer specifying the graphics driver to be used. It tells the compiler that what graphics driver to use or to automatically detect the drive. In all our programs we will use DETECT macro of graphics. h library that instruct compiler for auto detection of graphics driver.

Detailed explanation-4: -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”);

There is 1 question to complete.