![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2006
Posts: 10
Rep Power: 0
![]() |
Explain Me Please
Hello
Can anybody explain me the functions initgraph(-------); setfillstyle(-----); fillleclipse(-------); thank you |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4
![]() |
You should consult your documentation that came with this api/library or at least post what are you using. And what are those ------ ?
__________________
ivankorhner.co.sr |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Jul 2006
Location: using Earth.Africa.Egypt.Cairo;
Posts: 76
Rep Power: 3
![]() |
well i am not very good at C++ but i think they are some graphic functions of GDI
|
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 |
|
Newbie
Join Date: Nov 2006
Posts: 3
Rep Power: 0
![]() |
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); |
|
|
|
|
|
#6 |
|
Programmer
|
For full documentation and explnation of all the graphics functions see the following URL. http://www.cs.colorado.edu/~main/cs1300/doc/bgi/
__________________
Iftikhar Ahmed Khan For doing an experiment on programmer's mood please visit http://uxisfyp1.brunel.ac.uk/cspgiak |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| header() function, can anyone explain | leo1502 | PHP | 6 | Sep 30th, 2006 10:06 PM |
| Could some please explain classes to me... | TCStyle | C++ | 10 | Feb 20th, 2006 3:51 PM |
| Explain this code please | Eric the Red | C++ | 1 | Feb 18th, 2006 10:07 PM |
| Can someone explain J#? | Kilo | Java | 2 | Nov 24th, 2005 10:45 PM |
| can anyone explain the script to me?thanks! | lunarny | Perl | 5 | Apr 15th, 2005 10:29 AM |