Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 7th, 2006, 4:52 AM   #1
sayu
Newbie
 
Join Date: Nov 2006
Posts: 10
Rep Power: 0 sayu is on a distinguished road
Explain Me Please

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


thank you
sayu is offline   Reply With Quote
Old Nov 7th, 2006, 5:57 AM   #2
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4 ivan is on a distinguished road
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
ivan is offline   Reply With Quote
Old Nov 7th, 2006, 6:51 AM   #3
Samuaijack
Programmer
 
Samuaijack's Avatar
 
Join Date: Jul 2006
Location: using Earth.Africa.Egypt.Cairo;
Posts: 76
Rep Power: 3 Samuaijack is on a distinguished road
well i am not very good at C++ but i think they are some graphic functions of GDI
Samuaijack is offline   Reply With Quote
Old Nov 7th, 2006, 7:01 AM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Nov 8th, 2006, 9:27 AM   #5
rodman
Newbie
 
Join Date: Nov 2006
Posts: 3
Rep Power: 0 rodman is on a distinguished road
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);
rodman is offline   Reply With Quote
Old Nov 9th, 2006, 5:46 AM   #6
Iftikhar
Programmer
 
Iftikhar's Avatar
 
Join Date: Oct 2006
Location: London
Posts: 40
Rep Power: 0 Iftikhar is on a distinguished road
Send a message via MSN to Iftikhar
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
Iftikhar is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:18 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC