c语言图像函数库详解(Detailed description of C language image function library)
c语言图像函数库详解(Detailed description of C language image function library)
Graphics and image functions are included in the graphics.h
(1) pixel function
56. putpiel () draw pixel function
57. GetPixel () returns the pixel color function
(two) linear and linear functions
58. line () draw line function
59. lineto () draw line function
60. linerel () relative line drawing function
61. setlinestyle () sets the line type function
62. getlinesettings () gets the line setup function
63. setwritemode () sets the line mode function
(three) polygon function
64. rectangle () draw rectangular function
65. bar () draws a strip function
66. bar3d () draw block function
67. drawpoly () draw polygon function
(four) circle, arc and curve functions
68. getaspectratio () obtain aspect ratio function
69. circle () drawing a circle function
70. arc () draw arc function
71. ellipse () draw elliptic arc function
72. fillellipse () draw elliptic region function
73. pieslice () draw sector functions
74. sector () draw elliptic sector functions
75. getarccoords () obtain arc coordinate function
(five) filled function
76. setfillstyle () sets the fill pattern and the color function
77. setfillpattern () sets the user pattern function
78. floodfill () fills the closed field function
79. fillpoly () fills a polygon function
80. getfillsettings () gets the fill settings function
81. getfillpattern () gets the user pattern settings function
(six) image function
82. ImageSize () image storage size function
83. getimage () save the image function
84. putimage () output image function
Four, graphics and image functions
For many graphics applications, lines and curves are very useful. But some graphics can only be drawn by manipulating a single pixel. Of course, the function of lines and curves cannot be operated without the function of drawing pixels. Moreover, by using pixel functions on a large scale, the entire graph can be saved, written, erased, and superimposed on the original graphics on the scre