Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   Explain Me Please (http://www.programmingforums.org/showthread.php?t=11821)

sayu Nov 7th, 2006 5:52 AM

Explain Me Please
 
Hello
Can anybody explain me the functions
initgraph(-------);
setfillstyle(-----);
fillleclipse(-------);


thank you

ivan Nov 7th, 2006 6:57 AM

You should consult your documentation that came with this api/library or at least post what are you using. And what are those ------ ?

Samuaijack Nov 7th, 2006 7:51 AM

well i am not very good at C++ but i think they are some graphic functions of GDI

DaWei Nov 7th, 2006 8:01 AM

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.

rodman Nov 8th, 2006 10:27 AM

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);

Iftikhar Nov 9th, 2006 6:46 AM

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