<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://code-reference.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://code-reference.com/feed.php">
        <title>Programming | Library | Reference - Code-Reference.com c:graphics.h</title>
        <description></description>
        <link>https://code-reference.com/</link>
        <image rdf:resource="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-06-17T15:24:01+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/arc?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/bar?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/bar3d?rev=1708041957&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/circle?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/cleardevice?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/clearmouseclick?rev=1708041958&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/clearviewport?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/closegraph?rev=1708041951&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/delay?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/detectgraph?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/drawpoly?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/ellipse?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/fillellipse?rev=1708041958&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/fillpoly?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/floodfill?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getactivepage?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getarccoords?rev=1708041956&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getarccords?rev=1708041957&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getaspectration?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getbkcolor?rev=1708041957&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getch?rev=1708041957&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getcolor?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getcurrentwindow?rev=1708041956&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getdefaultpalette?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getdisplaycolor?rev=1708041950&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getdrivername?rev=1708041957&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getfillpattern?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getfillsettings?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getgraphmode?rev=1708041956&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getimage?rev=1708041958&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getlinesettings?rev=1708041947&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmaxcolor?rev=1708041956&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmaxheight?rev=1708041957&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmaxmode?rev=1708041957&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmaxwidth?rev=1708041950&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmaxx?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmaxy?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmodename?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmoderange?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmouseclick?rev=1708041947&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getpalette?rev=1708041958&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getpalettesize?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getpixel?rev=1439308760&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/gettextsettings?rev=1708041950&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getviewsettings?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getvisualpage?rev=1708041956&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getwindowheight?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getwindowwidth?rev=1708041947&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getx?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/gety?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/graphdefaults?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/grapherrormsg?rev=1708041951&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/graphresult?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/imagesize?rev=1708041951&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/initgraph?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/initwindow?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/installuserdriver?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/installuserfont?rev=1708041951&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/ismouseclick?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/kbhit?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/line?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/linerel?rev=1708041950&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/lineto?rev=1708041951&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/mousex?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/mousey?rev=1708041951&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/moverel?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/moveto?rev=1708041958&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/outtext?rev=1708041957&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/outtextxy?rev=1708041951&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/pieslice?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/printimage?rev=1708041947&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/putimage?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/putpixel?rev=1708041947&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/readimagefile?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/rectangle?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/registerbgidriver?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/registerbgifont?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/registermousehandler?rev=1708041956&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/restorecrtmode?rev=1708041958&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/sector?rev=1708041956&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setactivepage?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setallpalette?rev=1708041951&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setaspectratio?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setbkcolor?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setcolor?rev=1430935280&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setcurrentwindow?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setfillpattern?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setfillstyle?rev=1708041947&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setgraphbufsize?rev=1708041950&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setgraphmode?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setlinestyle?rev=1708041950&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setmousequeuestatus?rev=1708041956&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setpalette?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setrgbpalette?rev=1708041947&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/settextjustify?rev=1708041947&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/settextstyle?rev=1708041950&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setusercharsize?rev=1708041957&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setviewport?rev=1415235930&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setvisualpage?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setwritemode?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/showerrorbox?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/swapbuffers?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/textheight?rev=1365186525&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/textwidth?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/writeimagefile?rev=1430946537&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <link>https://code-reference.com/</link>
        <url>https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://code-reference.com/c/graphics.h/arc?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>arc</title>
        <link>https://code-reference.com/c/graphics.h/arc?rev=1708041954&amp;do=diff</link>
        <description>arc

Syntax of arc


#include &lt;graphics.h&gt;
void arc(int x, int y, int stangle, int endangle, int radius);
  

Description of arc


arc draws a circular arc in the current drawing color centered at (x,y)
with a radius given by radius. The arc travels from stangle to endangle.
If stangle equals 0 and endangle equals 360, the call to arc draws a
complete circle.
The angle for arc is reckoned counterclockwise, with 0 degrees at 3
o'clock, 90 degrees at 12 o'clock, and so on.
The linestyle parameter …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/bar?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>bar</title>
        <link>https://code-reference.com/c/graphics.h/bar?rev=1708041955&amp;do=diff</link>
        <description>bar

Syntax of bar


#include &lt;graphics.h&gt;
void bar(int left, int top, int right, int bottom);
  

Description of bar


bar draws a filled-in, rectangular, two-dimensional bar. The bar is
filled using the current fill pattern and fill color. bar does not
outline the bar; to draw an outlined two-dimensional bar, use bar3d with
depth equal to 0.
The upper left and lower right corners of the rectangle are given by
(left, top) and (right, bottom), respectively. The coordinates refer to
pixels.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/bar3d?rev=1708041957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:57+02:00</dc:date>
        <title>bar3d</title>
        <link>https://code-reference.com/c/graphics.h/bar3d?rev=1708041957&amp;do=diff</link>
        <description>bar3d

Syntax of bar3d


#include &lt;graphics.h&gt;
void bar3d(int left, int top, int right, int bottom, int depth, int
topflag);
  

Description of bar3d


bar3d draws a three-dimensional rectangular bar, then fills it using the
current fill pattern and fill color. The three-dimensional outline of the
bar is drawn in the current line style and color. The bar's depth in
pixels is given by depth. The topflag parameter governs whether a three-
dimensional top is put on the bar. If topflag is nonzero, a…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/circle?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>circle</title>
        <link>https://code-reference.com/c/graphics.h/circle?rev=1708041949&amp;do=diff</link>
        <description>circle

Syntax of circle


#include &lt;graphics.h&gt;
void circle(int x, int y, int radius);
  

Description of circle


circle draws a circle in the current drawing color with its center at
(x,y) and the radius given by radius.
The linestyle parameter does not affect arcs, circles, ellipses, or pie
slices. Only the thickness parameter is used.
If your circles are not perfectly round, adjust the aspect ratio.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/cleardevice?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>cleardevice</title>
        <link>https://code-reference.com/c/graphics.h/cleardevice?rev=1708041955&amp;do=diff</link>
        <description>cleardevice

Syntax of cleardevice


#include &lt;graphics.h&gt;
void cleardevice(void);
  

Description of cleardevice


cleardevice erases (that is, fills with the current background color) the
entire graphics screen and moves the CP (current position) to home (0,0).</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/clearmouseclick?rev=1708041958&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:58+02:00</dc:date>
        <title>clearmouseclick</title>
        <link>https://code-reference.com/c/graphics.h/clearmouseclick?rev=1708041958&amp;do=diff</link>
        <description>clearmouseclick

Syntax of clearmouseclick


#include &quot;graphics.h&quot;
void clearmouseclick(int kind);
  

Description of clearmouseclick


The clearmouseclick function is available in the winbgim implementation
of BGI graphics. This is just like getmouseclick, except it does not
provide the x and y coordinates of the event. The value of the argument
kind may be any of the constants listed above. After calling
getmouseclick, for a particular kind of event, the ismouseclick will
return false for that…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/clearviewport?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>clearviewport</title>
        <link>https://code-reference.com/c/graphics.h/clearviewport?rev=1708041952&amp;do=diff</link>
        <description>clearviewport

Syntax of clearviewport


#include &lt;graphics.h&gt;
void clearviewport(void);
  

Description of clearviewport


clearviewport erases the viewport and moves the CP (current position) to
home (0,0), relative to the viewport.


Example of clearviewport


/* clearviewport example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

#define CLIP_ON 1   /* activates clipping in viewport */

int main(void)
{
   /* request autodetection */
   int gdriver = DET…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/closegraph?rev=1708041951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:51+02:00</dc:date>
        <title>closegraph</title>
        <link>https://code-reference.com/c/graphics.h/closegraph?rev=1708041951&amp;do=diff</link>
        <description>closegraph

Syntax of closegraph


#include &lt;graphics.h&gt;
void closegraph(int wid=ALL_WINDOWS);
  

Description of closegraph


closegraph deallocates all memory allocated by the graphics system, then
restores the screen to the mode it was in before you called initgraph.
(The graphics system deallocates memory, such as the drivers, fonts, and
an internal buffer, through a call to _graphfreemem.)</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/delay?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>delay</title>
        <link>https://code-reference.com/c/graphics.h/delay?rev=1708041949&amp;do=diff</link>
        <description>delay

Syntax of delay


#include &quot;graphics.h&quot;
void delay(int millisec);
  

Description of delay


The delay function is available in the winbgim implementation of BGI
graphics. You do not need to include conio.h; just include graphics.h.
The function pauses the computation for the the specified number of
milliseconds.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/detectgraph?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>detectgraph</title>
        <link>https://code-reference.com/c/graphics.h/detectgraph?rev=1708041952&amp;do=diff</link>
        <description>detectgraph

Syntax of detectgraph


#include &lt;graphics.h&gt;
void detectgraph(int *graphdriver, int *graphmode);



Description of detectgraph


detectgraph detects your system's graphics adapter and chooses the mode
that provides the highest resolution for that adapter. If no graphics
hardware is detected, *graphdriver is set to grNotDetected (-2), and
graphresult returns grNotDetected (-2).
*graphdriver is an integer that specifies the graphics driver to be used.
You can give it a value using a …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/drawpoly?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>drawpoly</title>
        <link>https://code-reference.com/c/graphics.h/drawpoly?rev=1708041952&amp;do=diff</link>
        <description>drawpoly

Syntax of drawpoly


#include &lt;graphics.h&gt;
void drawpoly(int numpoints, int *polypoints);
  

Description of drawpoly


drawpoly draws a polygon with numpoints points, using the current line
style and color.
*polypoints points to a sequence of (numpoints * 2) integers. Each pair
of integers gives the x- and y-coordinates of a point on the polygon.
In order to draw a closed figure with n vertices, you must pass n + 1
coordinates to drawpoly where the nth coordinate is equal to the 0th.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/ellipse?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>ellipse</title>
        <link>https://code-reference.com/c/graphics.h/ellipse?rev=1708041952&amp;do=diff</link>
        <description>ellipse

Syntax of ellipse


#include &lt;graphics.h&gt;
void ellipse(int x, int y, int stangle, int endangle, int xradius, int
yradius);
  

Description of ellipse


ellipse draws an elliptical arc in the current drawing color with its
center at (x,y) and the horizontal and vertical axes given by xradius and
yradius, respectively. The ellipse travels from stangle to endangle. If
stangle equals 0 and endangle equals 360, the call to ellipse draws a
complete ellipse.
The angle for ellipse is reckoned c…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/fillellipse?rev=1708041958&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:58+02:00</dc:date>
        <title>fillellipse</title>
        <link>https://code-reference.com/c/graphics.h/fillellipse?rev=1708041958&amp;do=diff</link>
        <description>fillellipse

Syntax of fillellipse


#include &lt;graphics.h&gt;
void fillellipse(int x, int y, int xradius, int yradius);
  

Description of 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.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/fillpoly?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>fillpoly</title>
        <link>https://code-reference.com/c/graphics.h/fillpoly?rev=1708041948&amp;do=diff</link>
        <description>fillpoly

Syntax of fillpoly


#include &lt;graphics.h&gt;
void fillpoly(int numpoints, int *polypoints);
  

Description of fillpoly


fillpoly draws the outline of a polygon with numpoints points in the
current line style and color (just as drawpoly does), then fills the
polygon using the current fill pattern and fill color.
polypoints points to a sequence of (numpoints * 2) integers. Each pair of
integers gives the x- and y-coordinates of a point on the polygon.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/floodfill?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>floodfill</title>
        <link>https://code-reference.com/c/graphics.h/floodfill?rev=1708041952&amp;do=diff</link>
        <description>floodfill

Syntax of floodfill


#include &lt;graphics.h&gt;
void floodfill(int x, int y, int border);
  

Description of floodfill


floodfill fills an enclosed area on bitmap devices. (x,y) is a &quot;seed
point&quot; within the enclosed area to be filled. The area bounded by the
color border is flooded with the current fill pattern and fill color. If
the seed point is within an enclosed area, the inside will be filled. If
the seed is outside the enclosed area, the exterior will be filled.
Use fillpoly instea…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getactivepage?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>getactivepage</title>
        <link>https://code-reference.com/c/graphics.h/getactivepage?rev=1708041952&amp;do=diff</link>
        <description>getactivepage

Syntax of getactivepage


#include &quot;graphics.h&quot;
int getactivepage(void);
  

Description of getactivepage


The getactivepage function is available in the winbgim implementation of
BGI graphics. getactivepage gets the page number of the currently active
page (where drawing takes place).
The active graphics page might not be the one you see onscreen, depending
on how many graphics pages are available on your system.
The original winbgi was designed to support up to 16 pages, but I …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getarccoords?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>getarccoords</title>
        <link>https://code-reference.com/c/graphics.h/getarccoords?rev=1708041956&amp;do=diff</link>
        <description>getarccoords

Syntax of getarccoords


#include &lt;graphics.h&gt;
void getarccoords(struct arccoordstype *arccoords);
  

Description of getarccoords


getarccoords fills in the arccoordstype structure pointed to by arccoords
with information about the last call to arc. The arccoordstype structure
is defined in graphics.h as follows:
struct arccoordstype {
   int x, y;
   int xstart, ystart, xend, yend;
};
The members of this structure are used to specify the center point (x,y),
the starting position…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getarccords?rev=1708041957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:57+02:00</dc:date>
        <title>getarccords</title>
        <link>https://code-reference.com/c/graphics.h/getarccords?rev=1708041957&amp;do=diff</link>
        <description>description of getarccords

getarccords is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of getarccords c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getaspectration?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>getaspectration</title>
        <link>https://code-reference.com/c/graphics.h/getaspectration?rev=1708041949&amp;do=diff</link>
        <description>getaspectration

Syntax of getaspectration


#include &lt;graphics.h&gt;
void getaspectratio(int *xasp, int *yasp);
  

Description of getaspectration


The y aspect factor, *yasp, is normalized to 10,000. On all graphics
adapters except the VGA, *xasp (the x aspect factor) is less than *yasp
because the pixels are taller than they are wide. On the VGA, which has
&quot;square&quot; pixels, *xasp equals *yasp. In general, the relationship between
*yasp and *xasp can be stated as
*yasp = 10,000
*xasp &lt;= 10,000
ge…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getbkcolor?rev=1708041957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:57+02:00</dc:date>
        <title>getbkcolor</title>
        <link>https://code-reference.com/c/graphics.h/getbkcolor?rev=1708041957&amp;do=diff</link>
        <description>getbkcolor

Syntax of getbkcolor


#include &lt;graphics.h&gt;
int getbkcolor(void);
  

Description of getbkcolor


getbkcolor returns the current background color. (See the table in
setbkcolor for details.)


Example of getbkcolor


/* getbkcolor example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main(void)
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;
   int bkcolor, midx, midy;
   char bkname[35];

   /…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getch?rev=1708041957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:57+02:00</dc:date>
        <title>getch</title>
        <link>https://code-reference.com/c/graphics.h/getch?rev=1708041957&amp;do=diff</link>
        <description>getch

Syntax of getch


#include &quot;graphics.h&quot;
int getch(void);
  

Description of getch


The getch function is available in the winbgim implementation of BGI
graphics. You do not need to include conio.h; just include graphics.h.
The function reads one character from the keyboard and returns its ASCII
value (without waiting for a return key). In order to work, the user must
click in the graphics window (i.e., the Windows focus must be in the
graphics window). For special keys, the getch functio…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getcolor?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>getcolor</title>
        <link>https://code-reference.com/c/graphics.h/getcolor?rev=1708041954&amp;do=diff</link>
        <description>getcolor

Syntax of getcolor


#include &lt;graphics.h&gt;
int getcolor(void);
  

Description of getcolor


getcolor returns the current drawing color. The drawing color is the
value to which pixels are set when lines and so on are drawn. For
example, in CGAC0 mode, the palette contains four colors: the background
color, light green, light red, and yellow. In this mode, if getcolor
returns 1, the current drawing color is light green.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getcurrentwindow?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>getcurrentwindow</title>
        <link>https://code-reference.com/c/graphics.h/getcurrentwindow?rev=1708041956&amp;do=diff</link>
        <description>getcurrentwindow

output of getcurrentwindow example
  no output of example at the moment
  do not hesitate and add it...</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getdefaultpalette?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>getdefaultpalette</title>
        <link>https://code-reference.com/c/graphics.h/getdefaultpalette?rev=1708041953&amp;do=diff</link>
        <description>getdefaultpalette

Syntax of getdefaultpalette


#include &lt;graphics.h&gt;
struct palettetype *getdefaultpalette(void);
  

Description of getdefaultpalette


getdefaultpalette finds the palettetype structure that contains the
palette initialized by the driver during initgraph.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getdisplaycolor?rev=1708041950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:50+02:00</dc:date>
        <title>getdisplaycolor</title>
        <link>https://code-reference.com/c/graphics.h/getdisplaycolor?rev=1708041950&amp;do=diff</link>
        <description>getdisplaycolor

Syntax of getdisplaycolor


#include &lt;graphics.h&gt;
int getdisplaycolor( int color );
  

Description of getdisplaycolor


The getdisplaycolor function is available in the winbgim implementation
of BGI graphics. getdisplaycolor is used to get an color that the current
actual display device can display.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getdrivername?rev=1708041957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:57+02:00</dc:date>
        <title>getdrivername</title>
        <link>https://code-reference.com/c/graphics.h/getdrivername?rev=1708041957&amp;do=diff</link>
        <description>getdrivername

Syntax of getdrivername


#include &lt;graphics.h&gt;
char *getdrivername(void);
  

Description of getdrivername


After a call to initgraph, getdrivername returns the name of the driver
that is currently loaded.


Example of getdrivername


/* getdrivername example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main()
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;

   /* stores the device driver name */
   char *dr…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getfillpattern?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>getfillpattern</title>
        <link>https://code-reference.com/c/graphics.h/getfillpattern?rev=1708041954&amp;do=diff</link>
        <description>getfillpattern

output of getfillpattern example
  no output of example at the moment
  do not hesitate and add it...</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getfillsettings?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>getfillsettings</title>
        <link>https://code-reference.com/c/graphics.h/getfillsettings?rev=1708041953&amp;do=diff</link>
        <description>getfillsettings

output of getfillsettings example
  no output of example at the moment
  do not hesitate and add it...</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getgraphmode?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>getgraphmode</title>
        <link>https://code-reference.com/c/graphics.h/getgraphmode?rev=1708041956&amp;do=diff</link>
        <description>getgraphmode

Syntax of getgraphmode


#include &lt;graphics.h&gt;
int getgraphmode(void);
  

Description of getgraphmode


Your program must make a successful call to initgraph before calling
getgraphmode.
The enumeration graphics_mode, defined in graphics.h, gives names for the
predefined graphics modes. For a table listing these enumeration values,
refer to the description for initgraph.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getimage?rev=1708041958&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:58+02:00</dc:date>
        <title>getimage</title>
        <link>https://code-reference.com/c/graphics.h/getimage?rev=1708041958&amp;do=diff</link>
        <description>getimage

Syntax of getimage


#include &lt;graphics.h&gt;
void getimage(int left, int top, int right, int bottom, void *bitmap);
  

Description of getimage


getimage copies an image from the screen to memory.
left, top, right, and bottom define the screen area to which the
rectangle is copied. bitmap points to the area in memory where the bit
image is stored. The first two words of this area are used for the width
and height of the rectangle; the remainder holds the image itself.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getlinesettings?rev=1708041947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:47+02:00</dc:date>
        <title>getlinesettings</title>
        <link>https://code-reference.com/c/graphics.h/getlinesettings?rev=1708041947&amp;do=diff</link>
        <description>getlinesettings

Syntax of getlinesettings


#include &lt;graphics.h&gt;
void getlinesettings(struct linesettingstype *lineinfo);
  

Description of getlinesettings


getlinesettings fills a linesettingstype structure pointed to by lineinfo
with information about the current line style, pattern, and thickness.
The linesettingstype structure is defined in graphics.h as follows:
struct linesettingstype {
   int linestyle;
   unsigned upattern;
   int thickness;
};
linestyle specifies in which style subs…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmaxcolor?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>getmaxcolor</title>
        <link>https://code-reference.com/c/graphics.h/getmaxcolor?rev=1708041956&amp;do=diff</link>
        <description>getmaxcolor

Syntax of getmaxcolor


#include &lt;graphics.h&gt;
int getmaxcolor(void);
  

Description of getmaxcolor


getmaxcolor returns the highest valid color value for the current
graphics driver and mode that can be passed to setcolor.
For example, on a 256K EGA, getmaxcolor always returns 15, which means
that any call to setcolor with a value from 0 to 15 is valid. On a CGA in
high-resolution mode or on a Hercules monochrome adapter, getmaxcolor
returns a value of 1.
  Windows Notes 
The winb…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmaxheight?rev=1708041957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:57+02:00</dc:date>
        <title>getmaxheight</title>
        <link>https://code-reference.com/c/graphics.h/getmaxheight?rev=1708041957&amp;do=diff</link>
        <description>getmaxheight

Syntax of getmaxheight


#include &lt;graphics.h&gt;
int getmaxheight(void);
  

Description of getmaxheight


The getmaxheight function is available in the winbgim implementation of
BGI graphics. The function returns the maximum height that will fit on
the screen when creating a window with initwindow. This is one of the few
BGI functions that may be called before calling initwindow. Note: The
value returned is correct for a window with a non-empty title. If you
create a window with the…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmaxmode?rev=1708041957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:57+02:00</dc:date>
        <title>getmaxmode</title>
        <link>https://code-reference.com/c/graphics.h/getmaxmode?rev=1708041957&amp;do=diff</link>
        <description>getmaxmode

Syntax of getmaxmode


#include &lt;graphics.h&gt;
int getmaxmode(void);
  

Description of getmaxmode


getmaxmode lets you find out the maximum mode number for the currently
loaded driver, directly from the driver. This gives it an advantage over
getmoderange, which works for Borland drivers only. The minimum mode is
0.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmaxwidth?rev=1708041950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:50+02:00</dc:date>
        <title>getmaxwidth</title>
        <link>https://code-reference.com/c/graphics.h/getmaxwidth?rev=1708041950&amp;do=diff</link>
        <description>getmaxwidth

Syntax of getmaxwidth


#include &lt;graphics.h&gt;
int getmaxwidth(void);
  

Description of getmaxwidth


The getmaxwidth function is available in the winbgim implementation of
BGI graphics. The function returns the maximum width that will fit on the
screen when creating a window with initwindow. This is one of the few BGI
functions that may be called before calling initwindow.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmaxx?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>getmaxx</title>
        <link>https://code-reference.com/c/graphics.h/getmaxx?rev=1708041953&amp;do=diff</link>
        <description>getmaxx

Syntax of getmaxx


#include &lt;graphics.h&gt;
int getmaxx(void);
  

Description of getmaxx


getmaxx returns the maximum (screen-relative) x value for the current
graphics driver and mode.
For example, on a CGA in 320*200 mode, getmaxx returns 319. getmaxx is
invaluable for centering, determining the boundaries of a region
onscreen, and so on.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmaxy?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>getmaxy</title>
        <link>https://code-reference.com/c/graphics.h/getmaxy?rev=1708041953&amp;do=diff</link>
        <description>getmaxy

Syntax of getmaxy


#include &lt;graphics.h&gt;
int getmaxy(void);
  

Description of getmaxy


getmaxy returns the maximum (screen-relative) y value for the current
graphics driver and mode.
For example, on a CGA in 320*200 mode, getmaxy returns 199. getmaxy is
invaluable for centering, determining the boundaries of a region
onscreen, and so on.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmodename?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>getmodename</title>
        <link>https://code-reference.com/c/graphics.h/getmodename?rev=1708041955&amp;do=diff</link>
        <description>getmodename

Syntax of getmodename


#include &lt;graphics.h&gt;
char *getmodename(int mode_number);
  

Description of getmodename


getmodename accepts a graphics mode number as input and returns a string
containing the name of the corresponding graphics mode. The mode names
are embedded in each driver. The return values (&quot;320*200 CGA P1,&quot;
&quot;640*200 CGA&quot;, and so on) are useful for building menus or displaying
status.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmoderange?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>getmoderange</title>
        <link>https://code-reference.com/c/graphics.h/getmoderange?rev=1708041952&amp;do=diff</link>
        <description>getmoderange

Syntax of getmoderange


#include &lt;graphics.h&gt;
void getmoderange(int graphdriver, int *lomode, int *himode);
  

Description of getmoderange


getmoderange gets the range of valid graphics modes for the given
graphics driver, graphdriver. The lowest permissible mode value is
returned in *lomode, and the highest permissible value is *himode. If
graphdriver specifies an invalid graphics driver, both *lomode and
*himode are set to -1. If the value of graphdriver is -1, the currently
l…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmouseclick?rev=1708041947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:47+02:00</dc:date>
        <title>getmouseclick</title>
        <link>https://code-reference.com/c/graphics.h/getmouseclick?rev=1708041947&amp;do=diff</link>
        <description>getmouseclick

Syntax of getmouseclick


#include &quot;graphics.h&quot;
voud getmouseclick(int kind, int&amp;amp; x, int&amp;amp; y);
  

Description of getmouseclick


The getmouseclick function is available in the winbgim implementation of
BGI graphics. This function sets x and y to the pixel coordinates of an
unprocessed event of the specified kind. If there is no such event, then
the function sets both x and y to -1. The value of the argument kind may
be any of the constants listed above. After calling getmo…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getpalette?rev=1708041958&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:58+02:00</dc:date>
        <title>getpalette</title>
        <link>https://code-reference.com/c/graphics.h/getpalette?rev=1708041958&amp;do=diff</link>
        <description>getpalette

Syntax of getpalette


#include &lt;graphics.h&gt;
void getpalette(struct palettetype *palette);
  

Description of getpalette


getpalette fills the palettetype structure pointed to by palette with
information about the current palette's size and colors.
The MAXCOLORS constant and the palettetype structure used by getpalette
are defined in graphics.h as follows:
#define MAXCOLORS  15

struct palettetype {
   unsigned char size;
   signed char colors[MAXCOLORS + 1];
};
size gives the numbe…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getpalettesize?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>getpalettesize</title>
        <link>https://code-reference.com/c/graphics.h/getpalettesize?rev=1708041953&amp;do=diff</link>
        <description>getpalettesize

Syntax of getpalettesize


#include &lt;graphics.h&gt;
int getpalettesize(void);
  

Description of getpalettesize


getpalettesize is used to determine how many palette entries can be set
for the current graphics mode. For example, the EGA in color mode returns
16.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getpixel?rev=1439308760&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-08-11T17:59:20+02:00</dc:date>
        <title>getpixel</title>
        <link>https://code-reference.com/c/graphics.h/getpixel?rev=1439308760&amp;do=diff</link>
        <description>getpixel

Syntax of getpixel


#include &lt;graphics.h&gt;
unsigned getpixel(int x, int y);
  

Description of getpixel


getpixel gets the color of the pixel located at (x,y).


Example of getpixel


/* getpixel example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;
#include &lt;dos.h&gt;

#define PIXEL_COUNT 1000
#define DELAY_TIME  100  /* in milliseconds */

int main(void)
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;
   int i, x, y, col…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/gettextsettings?rev=1708041950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:50+02:00</dc:date>
        <title>gettextsettings</title>
        <link>https://code-reference.com/c/graphics.h/gettextsettings?rev=1708041950&amp;do=diff</link>
        <description>gettextsettings

Syntax of gettextsettings


#include &lt;graphics.h&gt;
void gettextsettings(struct textsettingstype *texttypeinfo);
  

Description of gettextsettings


gettextsettings fills the textsettingstype structure pointed to by
textinfo with information about the current text font, direction, size,
and justification. The textsettingstype structure used by gettextsettings
is defined in graphics.h as follows:
struct textsettingstype {
   int font;
   int direction;
   int charsize;
   int hori…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getviewsettings?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>getviewsettings</title>
        <link>https://code-reference.com/c/graphics.h/getviewsettings?rev=1708041948&amp;do=diff</link>
        <description>getviewsettings

Syntax of getviewsettings


#include &lt;graphics.h&gt;
void getviewsettings(struct viewporttype *viewport);
  

Description of getviewsettings


getviewsettings fills the viewporttype structure pointed to by viewport
with information about the current viewport.
The viewporttype structure used by getviewport is defined in graphics.h
as follows:
struct viewporttype {
   int left, top, right, bottom;
   int clip;
};</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getvisualpage?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>getvisualpage</title>
        <link>https://code-reference.com/c/graphics.h/getvisualpage?rev=1708041956&amp;do=diff</link>
        <description>getvisualpage

Syntax of getvisualpage


#include &quot;graphics.h&quot;
int getvisualpage(void);
  

Description of getvisualpage


The getvisualpage function is available in the winbgim implementation of
BGI graphics. getvisualpage gets the page number of the currently visable
page (which is visible on the screen).
The visual graphics page might not be the one where drawing currnetly
takes place.
The original winbgi was designed to support up to 16 pages, but I have
only used pages 1 and 2 myself. NOTE:…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getwindowheight?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>getwindowheight</title>
        <link>https://code-reference.com/c/graphics.h/getwindowheight?rev=1708041952&amp;do=diff</link>
        <description>getwindowheight

Syntax of getwindowheight


#include &lt;graphics.h&gt;
int getwindowheight(void);
  

Description of getwindowheight


The getwindowheight function is available in the winbgim implementation
of BGI graphics. The function returns the total height of the window
including nondrawable border areas.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getwindowwidth?rev=1708041947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:47+02:00</dc:date>
        <title>getwindowwidth</title>
        <link>https://code-reference.com/c/graphics.h/getwindowwidth?rev=1708041947&amp;do=diff</link>
        <description>getwindowwidth

Syntax of getwindowwidth


#include &lt;graphics.h&gt;
int getwindowwidth(void);
  

Description of getwindowwidth


The getwindowwidth function is available in the winbgim implementation of
BGI graphics. The function returns the total width of the window
including nondrawable border areas.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getx?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>getx</title>
        <link>https://code-reference.com/c/graphics.h/getx?rev=1708041954&amp;do=diff</link>
        <description>getx

Syntax of getx


#include &lt;graphics.h&gt;
int getx(void);
  

Description of getx


getx finds the current graphics position's x-coordinate. The value is
viewport-relative.


Example of getx


/* getx example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main(void)
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;
   char msg[80];


   /* initialize graphics and local variables */
   initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;);

   /* r…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/gety?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>gety</title>
        <link>https://code-reference.com/c/graphics.h/gety?rev=1708041954&amp;do=diff</link>
        <description>gety

Syntax of gety


#include &lt;graphics.h&gt;
int gety(void);
  

Description of gety


gety returns the current graphics position's y-coordinate. The value is
viewport-relative.


Example of gety


/* gety example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main(void)
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;
   char msg[80];

   /* initialize graphics and local variables */
   initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;);

   /* …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/graphdefaults?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>graphdefaults</title>
        <link>https://code-reference.com/c/graphics.h/graphdefaults?rev=1708041949&amp;do=diff</link>
        <description>graphdefaults

Syntax of graphdefaults


#include &lt;graphics.h&gt;
void graphdefaults(void);
  

Description of graphdefaults


graphdefaults resets all graphics settings to their defaults:
    * sets the viewport to the entire screen.
    * moves the current position to (0,0).
    * sets the default palette colors, background color, and drawing
color.
    * sets the default fill style and pattern.
    * sets the default text font and justification.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/grapherrormsg?rev=1708041951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:51+02:00</dc:date>
        <title>grapherrormsg</title>
        <link>https://code-reference.com/c/graphics.h/grapherrormsg?rev=1708041951&amp;do=diff</link>
        <description>grapherrormsg

Syntax of grapherrormsg


#include &lt;graphics.h&gt;
char * grapherrormsg(int errorcode);
  

Description of grapherrormsg


grapherrormsg returns a pointer to the error message string associated
with errorcode, the value returned by graphresult.
Refer to the entry for errno in the Library Reference, Chapter 4, for a
list of error messages and mnemonics.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/graphresult?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>graphresult</title>
        <link>https://code-reference.com/c/graphics.h/graphresult?rev=1708041948&amp;do=diff</link>
        <description>graphresult

Syntax of graphresult


#include &lt;graphics.h&gt;
int graphresult(void);
  

Description of graphresult


graphresult returns the error code for the last graphics operation that
reported an error and resets the error level to grOk.
The following table lists the error codes returned by graphresult. The
enumerated type graph_errors defines the errors in this table.
graph_errors is declared in graphics.h.
code  constant     Corresponding error message string
0 grOk   No error
-1grNoInitGra…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/imagesize?rev=1708041951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:51+02:00</dc:date>
        <title>imagesize</title>
        <link>https://code-reference.com/c/graphics.h/imagesize?rev=1708041951&amp;do=diff</link>
        <description>imagesize

Syntax of imagesize


#include &lt;graphics.h&gt;
unsigned imagesize(int left, int top, int right, int bottom);
  

Description of imagesize


imagesize determines the size of the memory area required to store a bit
image. If the size required for the selected image is greater than or
equal to 64K - 1 bytes, imagesize returns 0xFFFF (-1).</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/initgraph?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>initgraph</title>
        <link>https://code-reference.com/c/graphics.h/initgraph?rev=1708041955&amp;do=diff</link>
        <description>initgraph

Syntax of initgraph


#include &lt;graphics.h&gt;
void initgraph(int *graphdriver, int *graphmode, char *pathtodriver);
  

Description of initgraph


initgraph initializes the graphics system by loading a graphics driver
from disk (or validating a registered driver), and putting the system
into graphics mode.
To start the graphics system, first call the initgraph function.
initgraph loads the graphics driver and puts the system into graphics
mode. You can tell initgraph to use a particular…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/initwindow?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>initwindow</title>
        <link>https://code-reference.com/c/graphics.h/initwindow?rev=1708041948&amp;do=diff</link>
        <description>initwindow

Syntax of initwindow


#include &quot;graphics.h&quot;
int initwindow(int width, int height, const char* title=&quot;Windows BGI&quot;,
int left=0, int top=0, bool dbflag=false, closeflag=true);
  

Description of initwindow


The initwindow function is available in the winbgim implementation of BGI
graphics. You do not need to include conio.h; just include graphics.h.
The function initializes the graphics system by opening a graphics window
of the specified size. The first two parameters (width and hei…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/installuserdriver?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>installuserdriver</title>
        <link>https://code-reference.com/c/graphics.h/installuserdriver?rev=1708041954&amp;do=diff</link>
        <description>installuserdriver

output of installuserdriver example
  no output of example at the moment
  do not hesitate and add it...</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/installuserfont?rev=1708041951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:51+02:00</dc:date>
        <title>installuserfont</title>
        <link>https://code-reference.com/c/graphics.h/installuserfont?rev=1708041951&amp;do=diff</link>
        <description>installuserfont

Syntax of installuserfont


#include &lt;graphics.h&gt;
int installuserfont(char *name);
  

Description of installuserfont


name is a file name in the current directory (pathname is not supported)
of a font file containing a stroked font. Up to twenty fonts can be
installed at one time.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/ismouseclick?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>ismouseclick</title>
        <link>https://code-reference.com/c/graphics.h/ismouseclick?rev=1708041949&amp;do=diff</link>
        <description>ismouseclick

Syntax of ismouseclick


#include &quot;graphics.h&quot;
bool ismouseclick(int kind);
  

Description of ismouseclick


The ismouseclick function is available in the winbgim implementation of
BGI graphics. This function returns true if there is an unprocessed mouse
event of the specified kind. The argument to ismouseclick is one of these
constants from the graphics.h file:
  WM_MOUSEMOVE
if you want to detect a mouse movement
  WM_LBUTTONDBLCLK
...detect when the left mouse button is double …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/kbhit?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>kbhit</title>
        <link>https://code-reference.com/c/graphics.h/kbhit?rev=1708041948&amp;do=diff</link>
        <description>kbhit

Syntax of kbhit


#include &quot;graphics.h&quot;
int kbhit(void);
  

Description of kbhit


The kbhit function is available in the winbgim implementation of BGI
graphics. You do not need to include conio.h; just include graphics.h.
The function returns true (non-zero) if there is a character in the input
buffer ready to read. Otherwise it returns false. In order to work, the
user must click in the graphics window (i.e., the Windows focus must be
in the graphics window).</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/line?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>line</title>
        <link>https://code-reference.com/c/graphics.h/line?rev=1708041953&amp;do=diff</link>
        <description>line

Syntax of line


#include &lt;graphics.h&gt;
void line(int x1, int y1, int x2, int y2);
  

Description of line


line draws a line in the current color, using the current line style and
thickness between the two points specified, (x1,y1) and (x2,y2), without
updating the current position (CP).</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/linerel?rev=1708041950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:50+02:00</dc:date>
        <title>linerel</title>
        <link>https://code-reference.com/c/graphics.h/linerel?rev=1708041950&amp;do=diff</link>
        <description>linerel

Syntax of linerel


#include &lt;graphics.h&gt;
void linerel(int dx, int dy);
  

Description of linerel


linerel draws a line from the CP (current position) to a point that is a
relative distance (dx,dy) from the CP. The CP is advanced by (dx,dy).</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/lineto?rev=1708041951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:51+02:00</dc:date>
        <title>lineto</title>
        <link>https://code-reference.com/c/graphics.h/lineto?rev=1708041951&amp;do=diff</link>
        <description>lineto

Syntax of lineto


#include &lt;graphics.h&gt;
void lineto(int x, int y);
  

Description of lineto


lineto draws a line from the CP (current position) to (x,y), then moves
the CP to (x,y).


Example of lineto


/* lineto example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main(void)
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;
   char msg[80];

   /* initialize graphics and local variables */
   initgraph(&amp;gdriver, &amp;…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/mousex?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>mousex</title>
        <link>https://code-reference.com/c/graphics.h/mousex?rev=1708041952&amp;do=diff</link>
        <description>mousex

Syntax of mousex


#include &quot;graphics.h&quot;
int mousex(void);
  

Description of mousex


The mousex function is available in the winbgim implementation of BGI
graphics. It returns the most recent x coordinate of the mouse within the
graphics window. X-coordinates start with 0 at the left edge of the
window and increase to getmaxx( ) at the right edge of the window.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/mousey?rev=1708041951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:51+02:00</dc:date>
        <title>mousey</title>
        <link>https://code-reference.com/c/graphics.h/mousey?rev=1708041951&amp;do=diff</link>
        <description>mousey

Syntax of mousey


#include &quot;graphics.h&quot;
int mousey(void);
  

Description of mousey


The mousey function is available in the winbgim implementation of BGI
graphics. It returns the most recent y coordinate of the mouse within the
graphics window. Y-coordinates start with 0 at the top edge of the window
and increase to getmaxy( ) at the bottom edge of the window.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/moverel?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>moverel</title>
        <link>https://code-reference.com/c/graphics.h/moverel?rev=1708041955&amp;do=diff</link>
        <description>moverel

Syntax of moverel


#include &lt;graphics.h&gt;
void moverel(int dx, int dy);
  

Description of moverel


moverel moves the current position (CP) dx pixels in the x direction and
dy pixels in the y direction.


Example of moverel


/* moverel example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main(void)
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;
   char msg[80];

   /* initialize graphics and local variables */
  …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/moveto?rev=1708041958&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:58+02:00</dc:date>
        <title>moveto</title>
        <link>https://code-reference.com/c/graphics.h/moveto?rev=1708041958&amp;do=diff</link>
        <description>moveto

Syntax of moveto


#include &lt;graphics.h&gt;
void moveto(int x, int y);
  

Description of moveto


moveto moves the current position (CP) to viewport position (x,y).


Example of moveto


/* moveto example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main(void)
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;
   char msg[80];

   /* initialize graphics and local variables */
   initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;);

   /* rea…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/outtext?rev=1708041957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:57+02:00</dc:date>
        <title>outtext</title>
        <link>https://code-reference.com/c/graphics.h/outtext?rev=1708041957&amp;do=diff</link>
        <description>outtext

Syntax of outtext


#include &lt;graphics.h&gt;
void outtext(char *textstring);
  

Description of outtext


outtext displays a text string in the viewport, using the current font,
direction, and size.
outtext outputs textstring at the current position (CP). If the
horizontal text justification is LEFT_TEXT and the text direction is
HORIZ_DIR, the CP's x-coordinate is advanced by textwidth(textstring).
Otherwise, the CP remains unchanged.
To maintain code compatibility when using several font…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/outtextxy?rev=1708041951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:51+02:00</dc:date>
        <title>outtextxy</title>
        <link>https://code-reference.com/c/graphics.h/outtextxy?rev=1708041951&amp;do=diff</link>
        <description>outtextxy

Syntax of outtextxy


#include &lt;graphics.h&gt;
void outtextxy(int x, int y, char *textstring);
  

Description of outtextxy


outtextxy displays a text string in the viewport at the given position
(x, y), using the current justification settings and the current font,
direction, and size.
To maintain code compatibility when using several fonts, use textwidth
and textheight to determine the dimensions of the string.
If a string is printed with the default font using outtext or outtextxy,
a…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/pieslice?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>pieslice</title>
        <link>https://code-reference.com/c/graphics.h/pieslice?rev=1708041954&amp;do=diff</link>
        <description>pieslice

Syntax of pieslice


#include &lt;graphics.h&gt;
void pieslice(int x, int y, int stangle, int endangle, int radius);
  

Description of pieslice


pieslice draws and fills a pie slice centered at (x,y) with a radius
given by radius. The slice travels from stangle to endangle. The slice is
outlined in the current drawing color and then filled using the current
fill pattern and fill color.
The angles for pieslice are given in degrees. They are measured
counterclockwise, with 0 degrees at 3 o'c…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/printimage?rev=1708041947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:47+02:00</dc:date>
        <title>printimage</title>
        <link>https://code-reference.com/c/graphics.h/printimage?rev=1708041947&amp;do=diff</link>
        <description>printimage

Syntax of printimage


#include &quot;graphics.h&quot;
void printimage(
    const char* title=NULL,	
    double width_inches=7, double border_left_inches=0.75, double
border_top_inches=0.75,
    int left=0, int right=0, int right=INT_MAX, int bottom=INT_MAX
    );</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/putimage?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>putimage</title>
        <link>https://code-reference.com/c/graphics.h/putimage?rev=1708041953&amp;do=diff</link>
        <description>putimage

Syntax of putimage


#include &lt;graphics.h&gt;
void putimage(int left, int top, void *bitmap, int op);
  

Description of putimage


putimage puts the bit image previously saved with getimage back onto the
screen, with the upper left corner of the image placed at (left,top).
bitmap points to the area in memory where the source image is stored.
The op parameter to putimage specifies a combination operator that
controls how the color for each destination pixel onscreen is computed,
based on …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/putpixel?rev=1708041947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:47+02:00</dc:date>
        <title>putpixel</title>
        <link>https://code-reference.com/c/graphics.h/putpixel?rev=1708041947&amp;do=diff</link>
        <description>putpixel

Syntax of putpixel


#include &lt;graphics.h&gt;
void putpixel(int x, int y, int color);
  

Description of putpixel


putpixel plots a point in the color defined by color at (x,y).


Example of putpixel


/* putpixel example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;
#include &lt;dos.h&gt;

#define PIXEL_COUNT 1000
#define DELAY_TIME  100  /* in milliseconds */

int main()
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;
   int i…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/readimagefile?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>readimagefile</title>
        <link>https://code-reference.com/c/graphics.h/readimagefile?rev=1708041948&amp;do=diff</link>
        <description>readimagefile

Syntax of readimagefile


#include &quot;graphics.h&quot;
void readimagefile(
    const char* title=NULL,	
    int left=0, int right=0, int right=INT_MAX, int bottom=INT_MAX
    );
  

Description of readimagefile

&lt;code c&gt;
The readimagefile function is available in the winbgim implementation of
BGI graphics. You do not need to include conio.h; just include
graphics.h. The function reads a BMP, GIF, JPG, ICO, EMF or WMF image
file and displays it in part of the current active window. The fi…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/rectangle?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>rectangle</title>
        <link>https://code-reference.com/c/graphics.h/rectangle?rev=1708041949&amp;do=diff</link>
        <description>rectangle

Syntax of rectangle


#include &lt;graphics.h&gt;
void rectangle(int left, int top, int right, int bottom);
  

Description of rectangle


rectangle draws a rectangle in the current line style, thickness, and
drawing color.
(left,top) is the upper left corner of the rectangle, and (right,bottom)
is its lower right corner.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/registerbgidriver?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>registerbgidriver</title>
        <link>https://code-reference.com/c/graphics.h/registerbgidriver?rev=1708041949&amp;do=diff</link>
        <description>registerbgidriver

Syntax of registerbgidriver


#include &lt;graphics.h&gt;
int registerbgidriver(void (*driver)(void));
  

Description of registerbgidriver


registerbgidriver enables a user to load a driver file and &quot;register&quot; the
driver. Once its memory location has been passed to registerbgidriver,
initgraph uses the registered driver. A user-registered driver can be
loaded from disk onto the heap, or converted to an .OBJ file (using
BGIOBJ.EXE) and linked into the .EXE.
Calling registerbgidrive…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/registerbgifont?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>registerbgifont</title>
        <link>https://code-reference.com/c/graphics.h/registerbgifont?rev=1708041949&amp;do=diff</link>
        <description>registerbgifont

Syntax of registerbgifont


#include &lt;graphics.h&gt;
int registerbgifont(void (*font)(void));
  

Description of registerbgifont


Calling registerbgifont informs the graphics system that the font pointed
to by font was included at link time. This routine checks the linked-in
code for the specified font; if the code is valid, it registers the code
in internal tables.
By using the name of a linked-in font in a call to registerbgifont, you
also tell the compiler (and linker) to link …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/registermousehandler?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>registermousehandler</title>
        <link>https://code-reference.com/c/graphics.h/registermousehandler?rev=1708041956&amp;do=diff</link>
        <description>registermousehandler

Example of registermousehandler


/* mouse example */
#include &quot;graphics.h&quot;

// The click_handler will be called whenever the left mouse button is
// clicked. It checks copies the x,y coordinates of the click to
// see if the click was on a red pixel. If so, then the boolean
// variable red_clicked is set to true. Note that in general
// all handlers should be quick. If they need to do more than a little
// work, they should set a variable that will trigger the work going,
…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/restorecrtmode?rev=1708041958&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:58+02:00</dc:date>
        <title>restorecrtmode</title>
        <link>https://code-reference.com/c/graphics.h/restorecrtmode?rev=1708041958&amp;do=diff</link>
        <description>restorecrtmode

Syntax of restorecrtmode


#include &lt;graphics.h&gt;
void restorecrtmode(void);
  

Description of restorecrtmode


restorecrtmode restores the original video mode detected by initgraph.
This function can be used in conjunction with setgraphmode to switch back
and forth between text and graphics modes. textmode should not be used
for this purpose; use it only when the screen is in text mode, to change
to a different text mode.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/sector?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>sector</title>
        <link>https://code-reference.com/c/graphics.h/sector?rev=1708041956&amp;do=diff</link>
        <description>sector

Syntax of sector


#include &lt;graphics.h&gt;
void sector(int x, int y, int stangle, int endangle, int xradius, int
yradius);
  

Description of sector


Draws and fills an elliptical pie slice using (x,y) as the center point,
xradius and yradius as the horizontal and vertical radii, respectively,
and drawing from stangle to endangle. The pie slice is outlined using the
current color, and filled using the pattern and color defined by
setfillstyle or setfillpattern.
The angles for sector are g…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setactivepage?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>setactivepage</title>
        <link>https://code-reference.com/c/graphics.h/setactivepage?rev=1708041948&amp;do=diff</link>
        <description>setactivepage

Syntax of setactivepage


#include &lt;graphics.h&gt;
void setactivepage(int page);
  

Description of setactivepage


setactivepage makes page the active graphics page. All subsequent
graphics output will be directed to that graphics page.
The active graphics page might not be the one you see onscreen, depending
on how many graphics pages are available on your system. Only the EGA,
VGA, and Hercules graphics cards support multiple pages.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setallpalette?rev=1708041951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:51+02:00</dc:date>
        <title>setallpalette</title>
        <link>https://code-reference.com/c/graphics.h/setallpalette?rev=1708041951&amp;do=diff</link>
        <description>setallpalette

Syntax of setallpalette


#include &lt;graphics.h&gt;
void setallpalette(struct palettetype *palette);
  

Description of setallpalette


setallpalette sets the current palette to the values given in the
palettetype structure pointed to by palette.
You can partially (or completely) change the colors in the EGA/VGA
palette with setallpalette.
The MAXCOLORS constant and the palettetype structure used by
setallpalette are defined in graphics.h as follows:
#define MAXCOLORS  15

struct pale…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setaspectratio?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>setaspectratio</title>
        <link>https://code-reference.com/c/graphics.h/setaspectratio?rev=1708041954&amp;do=diff</link>
        <description>setaspectratio

Syntax of setaspectratio


#include &lt;graphics.h&gt;
void setaspectratio(int xasp, int yasp);
  

Description of setaspectratio


setaspectratio changes the default aspect ratio of the graphics system.
The graphics system uses the aspect ratio to make sure that circles are
round onscreen. If circles appear elliptical, the monitor is not aligned
properly. You could correct this in the hardware by realigning the
monitor, but it's easier to change in the software by using
setaspectratio…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setbkcolor?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>setbkcolor</title>
        <link>https://code-reference.com/c/graphics.h/setbkcolor?rev=1708041955&amp;do=diff</link>
        <description>setbkcolor

Syntax of setbkcolor


#include &lt;graphics.h&gt;
void setbkcolor(int color);
  

Description of setbkcolor


setbkcolor sets the background to the color specified by color. The
argument color can be a name or a number as listed below. (These symbolic
names are defined in graphics.h.)
Name   Value
BLACK  0
BLUE   1
GREEN  2
CYAN   3
RED    4
MAGENTA5
BROWN  6
LIGHTGRAY    7
DARKGRAY     8
LIGHTBLUE    9
LIGHTGREEN   10
LIGHTCYAN    11
LIGHTRED     12
LIGHTMAGENTA 13
YELLOW 14
WHITE  15
Fo…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setcolor?rev=1430935280&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-05-06T20:01:20+02:00</dc:date>
        <title>setcolor</title>
        <link>https://code-reference.com/c/graphics.h/setcolor?rev=1430935280&amp;do=diff</link>
        <description></description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setcurrentwindow?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>setcurrentwindow</title>
        <link>https://code-reference.com/c/graphics.h/setcurrentwindow?rev=1708041953&amp;do=diff</link>
        <description>setcurrentwindow

output of setcurrentwindow example
  no output of example at the moment
  do not hesitate and add it...</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setfillpattern?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>setfillpattern</title>
        <link>https://code-reference.com/c/graphics.h/setfillpattern?rev=1708041954&amp;do=diff</link>
        <description>setfillpattern

Syntax of setfillpattern


#include &lt;graphics.h&gt;
void setfillpattern(char *upattern, int color);
  

Description of setfillpattern


setfillpattern is like setfillstyle, except that you use it to set a
user-defined 8x8 pattern rather than a predefined pattern.
upattern is a pointer to a sequence of 8 bytes, with each byte
corresponding to 8 pixels in the pattern. Whenever a bit in a pattern
byte is set to 1, the corresponding pixel is plotted.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setfillstyle?rev=1708041947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:47+02:00</dc:date>
        <title>setfillstyle</title>
        <link>https://code-reference.com/c/graphics.h/setfillstyle?rev=1708041947&amp;do=diff</link>
        <description>setfillstyle

Syntax of setfillstyle


#include &lt;graphics.h&gt;
void setfillstyle(int pattern, int color);
  

Description of setfillstyle


setfillstyle sets the current fill pattern and fill color. To set a user-
defined fill pattern, do not give a pattern of 12 (USER_FILL) to
setfillstyle; instead, call setfillpattern.
If invalid input is passed to setfillstyle, graphresult returns -1
(grError), and the current fill pattern and fill color remain unchanged.
Note: The EMPTY_FILL style is like a so…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setgraphbufsize?rev=1708041950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:50+02:00</dc:date>
        <title>setgraphbufsize</title>
        <link>https://code-reference.com/c/graphics.h/setgraphbufsize?rev=1708041950&amp;do=diff</link>
        <description>setgraphbufsize

Syntax of setgraphbufsize


#include &lt;graphics.h&gt;
unsigned setgraphbufsize(unsigned bufsize);
  

Description of setgraphbufsize


Some of the graphics routines (such as floodfill) use a memory buffer
that is allocated when initgraph is called and released when closegraph
is called. The default size of this buffer, allocated by _graphgetmem, is
4,096 bytes.
You might want to make this buffer smaller (to save memory space) or
bigger (if, for example, a call to floodfill produces …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setgraphmode?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>setgraphmode</title>
        <link>https://code-reference.com/c/graphics.h/setgraphmode?rev=1708041949&amp;do=diff</link>
        <description>setgraphmode

Syntax of setgraphmode


#include &lt;graphics.h&gt;
void setgraphmode(int mode);
  

Description of setgraphmode


setgraphmode selects a graphics mode different than the default one set
by initgraph. mode must be a valid mode for the current device driver.
setgraphmode clears the screen and resets all graphics settings to their
defaults (current position, palette, color, viewport, and so on).
You can use setgraphmode in conjunction with restorecrtmode to switch
back and forth between t…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setlinestyle?rev=1708041950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:50+02:00</dc:date>
        <title>setlinestyle</title>
        <link>https://code-reference.com/c/graphics.h/setlinestyle?rev=1708041950&amp;do=diff</link>
        <description>setlinestyle

Syntax of setlinestyle


#include &lt;graphics.h&gt;
void setlinestyle(int linestyle, unsigned upattern, int thickness);
  

Description of setlinestyle


setlinestyle sets the style for all lines drawn by line, lineto,
rectangle, drawpoly, and so on.
The linesettingstype structure is defined in graphics.h as follows:
struct linesettingstype {
   int linestyle;
   unsigned upattern;
   int thickness;
};
linestyle specifies in which of several styles subsequent lines will be
drawn (such a…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setmousequeuestatus?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>setmousequeuestatus</title>
        <link>https://code-reference.com/c/graphics.h/setmousequeuestatus?rev=1708041956&amp;do=diff</link>
        <description>setmousequeuestatus

Syntax of setmousequeuestatus


#include &quot;graphics.h&quot;
voud setmousequeuestatus(int kind, bool status=true);
  

Description of setmousequeuestatus


The setmousequeuestatus function is available in the winbgim
implementation of BGI graphics. This function controls whether mouse
events of a particular kind are queued for processing. If the status
parameter is false, then mouse events of the specified kind are not
queued. This means that each time a mouse event of that kind oc…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setpalette?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>setpalette</title>
        <link>https://code-reference.com/c/graphics.h/setpalette?rev=1708041955&amp;do=diff</link>
        <description>setpalette

Syntax of setpalette


      #include &lt;graphics.h&gt;
      void setpalette(int colornum, int color);


Description of setpalette


      setpalette changes the colornum entry in the palette to color. For
      example, setpalette(0,5) changes the first color in the current palette
      (the background color) to actual color number 5. If size is the number of
      entries in the current palette, colornum can range between 0 and (size -
      1).
      You can partially (or completely)…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setrgbpalette?rev=1708041947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:47+02:00</dc:date>
        <title>setrgbpalette</title>
        <link>https://code-reference.com/c/graphics.h/setrgbpalette?rev=1708041947&amp;do=diff</link>
        <description>setrgbpalette

Syntax of setrgbpalette


#include &lt;graphics.h&gt;
void setrgbpalette(int colornum, int red, int green, int blue);
  

Description of setrgbpalette


setrgbpalette can be used with the IBM 8514 and VGA drivers.
colornum defines the palette entry to be loaded, while red, green, and
blue define the component colors of the palette entry.
For the IBM 8514 display (and the VGA in 256K color mode), colornum is in
the range 0 to 255. For the remaining modes of the VGA, colornum is in
the ra…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/settextjustify?rev=1708041947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:47+02:00</dc:date>
        <title>settextjustify</title>
        <link>https://code-reference.com/c/graphics.h/settextjustify?rev=1708041947&amp;do=diff</link>
        <description>settextjustify

Syntax of settextjustify


#include &lt;graphics.h&gt;
void settextjustify(int horiz, int vert);
  

Description of settextjustify


Text output after a call to settextjustify is justified around the
current position (CP) horizontally and vertically, as specified. The
default justification settings are LEFT_TEXT (for horizontal) and
TOP_TEXT (for vertical). The enumeration text_just in graphics.h provides
names for the horiz and vert settings passed to settextjustify.
==== Description …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/settextstyle?rev=1708041950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:50+02:00</dc:date>
        <title>settextstyle</title>
        <link>https://code-reference.com/c/graphics.h/settextstyle?rev=1708041950&amp;do=diff</link>
        <description>settextstyle

Syntax of settextstyle


#include &lt;graphics.h&gt;
void settextstyle(int font, int direction, int charsize);
  

Description of settextstyle


settextstyle sets the text font, the direction in which text is
displayed, and the size of the characters. A call to settextstyle affects
all text output by outtext and outtextxy.
The parameters font, direction, and charsize passed to settextstyle are
described in the following:
font: One 8x8 bit-mapped font and several &quot;stroked&quot; fonts are avail…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setusercharsize?rev=1708041957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:57+02:00</dc:date>
        <title>setusercharsize</title>
        <link>https://code-reference.com/c/graphics.h/setusercharsize?rev=1708041957&amp;do=diff</link>
        <description>setusercharsize

output of setusercharsize example
  no output of example at the moment
  do not hesitate and add it...</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setviewport?rev=1415235930&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-06T02:05:30+02:00</dc:date>
        <title>setviewport</title>
        <link>https://code-reference.com/c/graphics.h/setviewport?rev=1415235930&amp;do=diff</link>
        <description>setviewport

Syntax of setviewport


#include &lt;graphics.h&gt;
void setviewport(int left, int top, int right, int bottom, int clip);
  

Description of setviewport


setviewport establishes a new viewport for graphics output.
The viewport corners are given in absolute screen coordinates by
(left,top) and (right,bottom). The current position (CP) is moved to
(0,0) in the new window.
The parameter clip determines whether drawings are clipped (truncated) at
the current viewport boundaries. If clip is n…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setvisualpage?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>setvisualpage</title>
        <link>https://code-reference.com/c/graphics.h/setvisualpage?rev=1708041955&amp;do=diff</link>
        <description>setvisualpage

Syntax of setvisualpage


#include &lt;graphics.h&gt;
void setvisualpage(int page);
  

Description of setvisualpage


setvisualpage makes page the visual graphics page.


Example of setvisualpage


/* setvisualpage example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main(void)
{
   /* select driver and mode that supports multiple pages */
   int gdriver = EGA, gmode = EGAHI, errorcode;
   int x, y, ht;

   /* initialize graphics and local va…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setwritemode?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>setwritemode</title>
        <link>https://code-reference.com/c/graphics.h/setwritemode?rev=1708041953&amp;do=diff</link>
        <description>setwritemode

Syntax of setwritemode


#include &lt;graphics.h&gt;
void setwritemode(int mode);
  

Description of setwritemode


The following constants are defined:
COPY_PUT = 0/* MOV */
XOR_PUT  = 1/* XOR */
Each constant corresponds to a binary operation between each byte in the
line and the corresponding bytes onscreen. COPY_PUT uses the assembly
language MOV instruction, overwriting with the line whatever is on the
screen. XOR_PUT uses the XOR command to combine the line with the screen.
Two suc…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/showerrorbox?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>showerrorbox</title>
        <link>https://code-reference.com/c/graphics.h/showerrorbox?rev=1708041954&amp;do=diff</link>
        <description>showerrorbox

Syntax of showerrorbox


#include &quot;graphics.h&quot;
void showerrorbox(const char* message=NULL);
  

Description of showerrorbox


The showerrorbox function is available in the winbgim implementation of
BGI graphics. You do not need to include conio.h; just include
graphics.h. The function opens a windows error message box with the
specified message (or a standard message if the message parameter is
NULL). The message box waits for the user to click on OK button before
showerrorbox retu…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/swapbuffers?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>swapbuffers</title>
        <link>https://code-reference.com/c/graphics.h/swapbuffers?rev=1708041948&amp;do=diff</link>
        <description>swapbuffers

Syntax of swapbuffers


#include &quot;graphics.h&quot;
void swapbuffers( );
  

Description of swapbuffers

&lt;code c&gt;
The swapbuffers function is available in the winbgim implementation of
BGI graphics. You do not need to include conio.h; just include
graphics.h. The function swaps the roles of the current active and the
current visual graphics buffers. It is equivalent to these statements:</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/textheight?rev=1365186525&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-05T20:28:45+02:00</dc:date>
        <title>textheight</title>
        <link>https://code-reference.com/c/graphics.h/textheight?rev=1365186525&amp;do=diff</link>
        <description>textheight

output of textheight example
  no output of example at the moment
  do not hesitate and add it...</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/textwidth?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>textwidth</title>
        <link>https://code-reference.com/c/graphics.h/textwidth?rev=1708041955&amp;do=diff</link>
        <description>textwidth

Syntax of textwidth


#include &lt;graphics.h&gt;
int textwidth(char *textstring);
  

Description of textwidth


The graphics function textwidth takes the string length, current font
size, and multiplication factor, and determines the width of textstring
in pixels.
This function is useful for computing viewport widths, sizing a title to
make it fit on a graph or in a box, and so on.
Use textwidth to compute the width of strings, instead of doing the
computations manually. When you use this…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/writeimagefile?rev=1430946537&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-05-06T23:08:57+02:00</dc:date>
        <title>writeimagefile</title>
        <link>https://code-reference.com/c/graphics.h/writeimagefile?rev=1430946537&amp;do=diff</link>
        <description>writeimagefile

Syntax of writeimagefile


#include &quot;graphics.h&quot;
void writeimagefile(
    const char* title=NULL,	
    double width_inches=7, double border_left_inches=0.75, double
border_top_inches=0.75,
    int left=0, int right=0, int right=INT_MAX, int bottom=INT_MAX
    );</description>
    </item>
</rdf:RDF>
