• Document: Borland Graphics Interface (BGI)
  • Size: 540.79 KB
  • Uploaded: 2019-07-14 05:13:58
  • Status: Successfully converted


Some snippets from your converted document:

Borland Graphics Interface (BGI) The following functions compose the Borland Graphics Interface and are usually available for 16 bit DOS applications. Use them to create onscreen graphics with text. They are defined in graphics.h. Using BGI with Windows The BGI graphics functions may also be used with Windows programs created by the Borland 5.0 compiler or the free GNU C++ compiler. These extra functions are described in www.cs.colorado.edu/~main/bgi/doc/bgi.html. In this listing, the extra functions are indicated by . Also, any of the functions that use colors can use RGB colors in addition to the 16- color BGI palette. Functions: void arc (int x, int y, int stangle, int endangle, int radius); void bar (int left, int top, int right, int bottom); void bar3d (int left, int top, int right, int bottom, int depth, int topflag); void circle (int x, int y, int radius); void cleardevice (void); void clearmouseclick(int kind); void clearviewport (void); void closegraph (void); void delay (int millisec); void detectgraph (int *graphdriver, int *graphmode); void drawpoly (int numpoints, int *polypoints); void ellipse (int x, int y, int stangle, int endangle, int xradius, int yradius); void fillellipse (int x, int y, int xradius, int yradius); void fillpoly (int numpoints, int *polypoints); void floodfill (int x, int y, int border); int getactivepage (void); void getarccoords (struct arccoordstype *arccoords); void getaspectratio (int *xasp, int *yasp); int getbkcolor (void); int getch (void); int getcolor (void); struct palettetype* getdefaultpalette (void); char* getdrivername (void); void getfillpattern (char *pattern); void getfillsettings (struct fillsettingstype *fillinfo); int getgraphmode (void); void getimage (int left, int top, int right, int bottom, void *bitmap); void getlinesettings (struct linesettingstype *lineinfo); int getmaxcolor (void); int getmaxmode (void); int getmaxx (void); int getmaxy (void); char* getmodename (int mode_number); void getmoderange (int graphdriver, int *lomode, int *himode); void getmouseclick(int kind, int& x, int& y); void getpalette (struct palettetype *palette); int getpalettesize (void); unsigned getpixel (int x, int y); void gettextsettings (struct textsettingstype *texttypeinfo); void getviewsettings (struct viewporttype *viewport); int getvisualpage (void); int getx (void); int gety (void); void graphdefaults (void); char* grapherrormsg (int errorcode); int graphresult(void); unsigned imagesize (int left, int top, int right, int bottom); void initgraph (int *graphdriver, int *graphmode, char *pathtodriver); void initwindow (int width, int height); int installuserdriver (char *name, int huge (*detect)(void)); int installuserfont (char *name); bool ismouseclick(int kind); int kbhit (void); void line (int x1, int y1, int x2, int y2); void linerel (int dx, int dy); void lineto (int x, int y); int mousex (void); int mousey (void); void moverel (int dx, int dy); void moveto (int x, int y); void outtext (char *textstring); void outtextxy (int x, int y, char *textstring); void pieslice (int x, int y, int stangle, int endangle, int radius); void putimage (int left, int top, void *bitmap, int op); void putpixel (int x, int y, int color); void rectangle (int left, int top, int right, int bottom); int registerbgidriver (void (*driver)(void)); int registerbgifont (void (*font)(void)); void registermousehandler (int kind, void h(int, int)); void restorecrtmode (void); RGB macros: COLOR(r,g,b), RED_VALUE(v), GREEN_VALUE(v), BLUE_VALUE(v), IS_BGI_COLOR(v), IS_RGB_COLOR(v) void sector (int x, int y, int stangle, int endangle, int xradius, int yradius); void setactivepage (int

Recently converted files (publicly available):