c语言函数库color.h,C语言图像函数库详解.docx

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值