![]() |
Explain Me Please
Hello
Can anybody explain me the functions initgraph(-------); setfillstyle(-----); fillleclipse(-------); thank you |
You should consult your documentation that came with this api/library or at least post what are you using. And what are those ------ ?
|
well i am not very good at C++ but i think they are some graphic functions of GDI
|
Looks to me like part of the old Borland BGI that came with Turbo C. The functions are explained by their names: initialize the mode for graphics, set the style of fill to be used, and fill an ellipse accordingly.
The hyphens are standins for 'blah blah' or 'foobarbaz' and the like. |
initgraph initializes the graphics system by loading a graphics driver from disk (or validating a registered driver), and putting the system into graphics mode. You pass it three variables, one for the driver, another for the mode, and the third which is the path where the BGI files are stored.
You declare initgraph from the graphics header file: #include <graphics.h> void initgraph(int *graphdriver, int *graphmode, char *pathtodriver); SetFillStyle sets the filling pattern and color to one of the predefined filling patterns. setfillstyle(style, getmaxcolor()); fillellipse Draws an ellipse using (x,y) as a center point and xradius and yradius as the horizontal and vertical axes, and fills it with the current fill color and fill pattern. void fillellipse(int x, int y, int xradius, int yradius); |
For full documentation and explnation of all the graphics functions see the following URL. http://www.cs.colorado.edu/~main/cs1300/doc/bgi/
|
| All times are GMT -5. The time now is 1:31 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC