C语言图像函数库详解
Graphics and image functions are ineluded in graphics.h
the pixel function
Putpiel () draws a pixel function
Getpixel () returns a plain color function
the line and line function
Line () line function
Lineto () draw a line function
Linerel () relative to the line function
Setlinestyle ()
sets the line function
Getlinesettings
() gets the line setting function
Setwritemocle ()
sets the line mode function
(3) the polygon
function
Rectangle () rectangle function
The bar () draw a function
Bar3d () draw the bar function
Drawpoly () draws a polygon function
, circle, arc and curve function
Getaspectratio () obtains the aspect ratio function
Circle () circle function
Arc () to draw the arc function
Ellipse () draws the elliptic arc function
Fillellipse () draws the elliptic function
The pieslice () drawing sector function
Sector () draws the elliptical sector function
The getarccoords () gets the arc coordinate function
the filling function
Setfillstyle () sets the fill pattern and color function
Setfillpattern () sets the user's pattern function
Floodfill () fills the closed domain function
Fillpoly () fills the polygon function
Getfillsettings () gets the fill set function
Getfillpattern () gets the user's pattern setting function
the image function
The imagesize () image stores the size function
Getimage () saves the image function
The putimage () output image function
4, graphics and image functions
For many graphical applications, lines and curves are very useful. But some graphics can only be drawn by manipulating individual pixels? Of course, if you don't draw pixels, you can,t operate the line and the function of the curve? And by using pixels on a large scale, the entire image can be saved, written, erased, and stacked with the original graphics on the scree n.
(1) the pixel function
Putpixel () draws the pixel function
Function: the function putpixel () draws a pixel on the screen in the graphical mode?
Usage: the function is called void put pixel (i