h===_返回true 函数返回值是什么意思思

graphics.h_百度百科
graphics.h
本词条缺少名片图,补充相关内容使词条更完整,还能快速升级,赶紧来吧!
是里面的图形库,如果要用的话应该用TC来编译,VC++有他自己的另外图形库。分为:像素函数、直线和线型函数、多边形函数、填充函数等。如何在vc及vs环境中使用graphics.h
插件EasyX。标准EasyX即可
graphics.h分类
graphics.h像素函数
putpixel() 画像素点函数
getpixel()返回像素色函数
graphics.h线型函数
line() 画线函数
lineto() 画线函数
() 相对画线函数
() 设置线型函数
() 获取线型设置函数
() 设置画线模式函数
graphics.h多边形函数
画矩形函数
bar() 画条函数
() 画条块函数
drawpoly() 画多边形函数
graphics.h曲线函数
getaspectratio()获取纵横比函数
circle()画圆函数
arc() 画圆弧函数
ellipse()画椭圆弧函数
() 画椭圆区函数
() 画扇区函数
sector() 画椭圆扇区函数
getarccoords()获取圆弧坐标函数
graphics.h填充函数
setfillstyle() 设置填充图样和颜色函数
() 设置用户图样函数
() 填充闭域函数
() 填充多边形函数
() 获取填充设置函数
() 获取用户图样设置函数
graphics.h图像函数
imagesize() 图像存储大小函数
() 保存图像函数
putimage() 输出图像函数
对许多图形应用程序,直线和曲线是非常有用的。但对有些图形只能靠操作单个像素才能画出。当然如果没有画像素的功能,就无法操作直线和曲线的函数。而且通过大规模使用像素功能,整个图形就可以保存、写、擦除和与屏幕上的原有图形进行叠加。
graphics.h像素函数
graphics.h画像素点函数
功能: 函数putpixel() 在图形模式下屏幕上画一个像素点。
用法:方式为void putpixel(int x,int y,int color);
说明: 参数x,y为像素点的坐标,color是该像素点的颜色,它可以是颜色符号名,也可以是整型色彩值。
此函数相应的是graphics.h
返回值: 无
例: 在屏幕上(6,8)处画一个红色像素点:
putpixel(6,8,RED);
graphics.h返回像素函数
功能: 函数getpixel()返回像素点颜色值。
用法: 该方式为int getpixel(int x,int y);
说明: 参数x,y为像素点坐标。
函数的返回值可以不反映实际彩色值,这取决于的设置情况(参见()函数)。
这个函数相应的为graphics.h
返回值: 返回一个像素点色彩值。
例: 把屏幕上(8,6)点的像素颜色值赋给变量color。
color=getpixel(8,6);
graphics.h线型函数
有三个画直线的函数,即line(),lineto(),()。这些直线使用坐标,并相对于当前图形,但不一定受视口限制,如果视口裁剪标志clip为真,那么直线将受到视口边缘截断;如果clip为假,即使终点坐标或新的当前位置在图形视口或屏幕极限之外,直线截断到屏幕极限。
有两种线宽及几种线型可供选择,也可以自己定义线图样。下面分别介绍直线和线型函数。
graphics.h画线函数
功能: 函数line()使用当前绘图色、线型及线宽,在给定的两点间画一直线。
用法: 该方式为void line(int startx,int starty,int endx,int endy);
说明: 参数startx,starty为起点坐标,endx,endy为终点坐标,函数调用前后,图形状态下屏幕光标(一般不可见)当前位置不改变。
此函数相应的头文件为graphics.h
返回值: 无
例: 见函数60.linerel()中的实例。
功能: 函数lineto()使用当前绘图色、线型及线宽,从当前位置画一直线到指定位置。
用法: 此方式为void lineto(int x,int y);
说明: 参数x,y为指定点的坐标,函数调用后,当前位置改变到指定点(x,y)。
该函数对应的为graphics.h
返回值: 无
例: 见函数60.linerel()中的实例。
graphics.h相对画线函数
功能: 函数() 使用当前绘图色、线型及线宽,从当前位置开始,按指定的水平和垂直偏移距离画一直线。
用法: 这个方式为voidlinerel(int dx,int dy);
说明: 参数dx,dy分别是水平偏移距离和垂直偏移距离。
函数调用后,当前位置变为增加偏移距离后的位置,例如,原来的位置是(8,6),调用函数linerel(10,18)后,当前位置为(18,24)。
返回值:无
例: 下面的程序为画线函数调用实例:
#i nclude&graphics.h&
void main()
int driver,
driver=DETECT;
initgraph(&driver,&mode,&&);
setcolor(15);
line(66,66,88,88);
lineto(100,100);
graphics.h设置线型函数
功能:() 为画线函数设置当前线型,包括线型、线图样和线宽。
用法: setlinestyle()方式为void setlinestyle(int stly,unsigned pattern,int wigth);
说明: 参数style为线型取值,也可以用相应名称表示,如表1-10中所示。
参数pattern用于自定义线图样,它是16位(bit)字,只有当style=USERBIT_LINE(值为1)时,pattern的值才有意义,使用用户自定义线图样,与图样中“1”位对应的像素显示,因此,pattern=0xFFFF,则画实线;pattern=0x9999,则画每隔两个像素交替显示的虚线,如果要画长虚线,那么pattern的值可为0xFF00和0xF00F,当style不为USERBIT_LINE值时,虽然pattern的值不起作用,但仍须为它提供一个值,一般取为0。
参数wigth用来设定线宽,其取值见表1-11,表中给出了两个值,即1和3,实际上,线宽取值为2也是可以接受的。
若用非法参数调用()函数,那么graphresult()会返回错误代码,并且当前线型继续有效。
Turbo C提供的线型与线宽定义在graphics.h中,表1-10和1-11分别列出了参数的取值与含义。
表1-10 线型
SOLID_LINE
DOTTED_LINE
CENTER_LINE
DASHED_LINE
USERBIT_LINE
用户自定义线型
表1-11 线宽
NORM_WIDTH(常宽)
一个像素宽(缺省值)
THICK_WIDTH(加宽)
三个像素宽
这个函数的是graphics.h
返回值: 无
例: 下面的程序显示了BC中所提供的线型图样:
#i nclude&graphics.h&
void main()
int driver,i;
driver=DETECT;
initgraph(&driver,&mode,&&);
for(i=0;i&4;i++)
line(i*50,200,i*50+60,200) ;
restorecrtmode();
graphics.h获取线型设置
功能: 函数getlinesettings() 用当前设置的线型、线图样和线宽填 写linesettingstype型结构。
用法: 函数调用方式为void(struct linesettingstype *info);
说明: 此执行后,当前的线型、线图样和线宽值被装入info指向的结构里,从而可从该结构中获得线型设置。
linesettingstype型结构定义如下:
struct linesettingstype {
其中linestyle用于存放线型,线型值为表1-10中的各值之一。
upattern用为装入用户自定义线图样,这是16位字,每一位等于一个像素,如果哪个位被设置,那么该像素打开,否则关闭。
thickness为线宽值存放的变量,可参见表1-11。
()函数对应的头文件为graphics.h
返回值: 返回的线型设置存放在info指向的结构中。
例: 把当前线型的设置写入info结构:
getlinesettings(&info);
graphics.h设置画线模式
功能: 函数setwritemode() 设置画线模式
用法:方式为 void()(int mode);
说明: 参数mode只有两个取值0和1,若mode为0,则新画的线将覆盖屏幕上原有的图形,此为缺省画线输出模式。如果mode为1,那么新画的像素点与原有图形的像素点先进行异或(XOR)运算,然后输出到屏幕上,使用这种画线输出模式,第二次画同一图形时,将擦除该图形。调用setwritemode()设置的画线输出模式只影响函数line(),lineto(),(),recangle()和()。
()函数对应的是graphics.h
返回值: 无
例: 设置画线输出模式为0:
setwritemode(0);
graphics.h多边形
对多边形,无疑可用画直线函数来画出它,但直接提供画多边形的函数会给用户很大方便。最常见的多边形有矩形、矩形块(或称条形)、多边形和多边形块,我们还把长方形条块也放到这里一起考虑,虽然它不是多边形,但它的特例就是矩形(块)。下面直接介绍画多边形的函数。
graphics.h画矩形函数
功能: 函数用当前绘图色、线型及线宽,画一个给定左上角与右下角的矩形(正方形或长方形)。
用法: 此函数调用方式为void rectangle(int left,int top,int right,int bottom);
说明: 参数left,top是左上角点坐标,right,bottom是右下角点坐标。如果有一个以上角点不在当前图形内,且裁剪标志clip设置的是真(1),那么调用该函数后,只有在图形视口内的矩形部分才被画出。
这个函数对应的头文件为graphics.h
返回值: 无
例: 下面的程序画一些矩形实例:
#i nclude&graphics.h&
void main()
int driver,
driver=DETECT;
initgraph(&driver,&mode,&&);
rectangle(80,80,220,200);
rectangle(140,99,180,300);
rectangle(6,6,88,88);
rectangle(168,72,260,360);
getchar();
restorecrtmode();
graphics.h画条函数
功能: 函数bar()用当前填充图样和(注意不是给图色)画出一个指定上左上角与右下角的实心长条形(长方块或正方块),但没有四条边线)。
用法: bar()方式为void bar(int left,int top,int right,int bottom);
说明: 参数left,topright,bottom分别为左上角坐标与右下角坐标,它们和调用函数的情形相同,调用此函数前,可用setfillstyle()或()设置当前填充图样和填充色。
注意此函数只画没有边线的条形,如果要画有边线的的条形,可调用下面的函数()来画,并将深度参数设为0,同时topflag参数要设置为真,否则该条形无顶边线。
这 应的为graphics.h
返回值: 无
例: 见函数bar3d()中的实例。
graphics.h画条块函数
功能: 函数() 使用当前绘图色、线型及线宽画出三维长方形条块,并用当前填充图样和填 充色填充该三维条块的表面。
用法: 此函数调用方式为voidbar3d(int left,int top,int right,int bottom,int depth,int topflag);
说明: 参数left,top,right,bottom分另为左上角与右下角坐标,这与bar()函数中的一样。参数depth为条块的深度,以像素为单位,通常按宽度的四分之一计算。深度方向通过屏显纵横比调节为约45度(即这时x/y比设置为1:1)。
参数topflag相当于一个布尔参数,如果设置为1(真)那么条块上放一顶面;若设置为0(假),则三维条形就没有顶面,这样可使多个三维条形叠加在一起。
要使图形更加美观,可利用函数()或()来选择填充图样和(参见本小节(五)填充函数 )。
bar3d()函数对应的头文件为graphics.h
返回值: 无
例: 下面的程序画一个条形和条块:
#i nclude&graphics.h&
void main()
int driver,
driver=DETECT;
initgraph(&driver,&mode,&&);
setfillstyle(SOLID-FILL,GREEN);
bar(60,80,220,160);
setfillstyle(SOLID-FILL,RED);
(260,180,360,240,20,1);
restorecrtmode();
graphics.h多边形函数
功能: 函数drawpoly() 用当前绘图色、线型及线宽,画一个给定若干点所定义的多边形。
用法: 此函数调用方式为void(int pnumber,int *points);
说明: 参数pnumber为多边形的顶点数;参数points指向整型,该数组中是多边形所有顶点(x,y)坐标值,即一系列整数对,x坐标值在前。显然整型数组的维数至少为顶点数的2倍,在定义了多边形所有顶点的数组polypoints时,顶点数目可通过计算sizeof(polypoints)除以2倍的sizeof(int)得到,这里除以2倍的原因是每个顶点有两个整数坐标值。另外有一点要注意,画一个n个顶点的闭合图形,顶点数必须等于n+1,并且最后一点(第n+1)点坐标必须等于第一点的坐标。
drawpoly()函数对应的为grpahics.h
返回值: 无
例: 下面的程序画一个封闭星形图与一个不封闭星形图:
#i nclude&graphics.h&
void main()
int driver,
static int polypoints1[18]={100,100,110,120,100,130,120,125,140,140,130,120,
140,110,120,115,100,100};
static int polypoints2[18]={180,100,210,120,200,130,220,125,240,140,230,120,
240,110,220,115,220,110};
driver=DETECT;
initgraph(&driver,&mode,&&);
(9,polypoints1);
drawpoly(9,polypoints2);
restorecrtmode();
graphics.h曲线函数
在一个屏幕上画得很圆的图形到另一个屏幕上可能被压扁或拉长,这是因为每一种显示卡与之相应的显示模式都有一个纵横比。纵横比是指像素的水平方向大小与垂直方向大小的比值。如VGA显示卡由于偈素基本上是正方形,所以纵横比为1.000。
为了保证几何图形基本按预计情况显示在屏幕上,用屏显的纵横比来计算和纠正不同硬件及显示卡产生的畸变。计算纵横比所需要的水平方向和垂直方向的比例系数可调用函数()获得。
graphics.h纵横比函数
功能: 函数()返回x方向和y方向的比例系数,用这两个整型值可计算某一特定屏显的纵横比。
用法: 此函数调用方式为voidgetaspectratio(int xasp,int yasp);
说明: 参数xasp指向的变量存放返回的x方向比例系数;参数yasp指向的变量存放返回的y方向比例系数。通常y方向比例系数为10 000, x方向比例系数不大于10 000(这是因为大多数屏幕像素高比宽长)。
注意纵横比自动用作下面函数arc(),circle()和()中的标尺因子,使屏幕上圆或弧正常显示。但用ellipse()函数画椭圆必须调用本函数获取纵横比作为标尺因子,否则不予调整。纵横比可用于其它几何图形,目的是校正和显示图形。
()函数对应的头文件为graphics.h
返回值: 返回x与y方向比例系数分别存放在xasp和yasp所指向的变量中。
例: 下面的程序显示纵横比:
getaspectratio(&xasp,&yasp);
aspectratio=xasp/
printf(&aspect ratio: %f&,aspectratio);
graphics.h画圆函数
功能: 函数circle()使用当前绘图色并以实线画一个完整的圆。
用法:该方式为void circle(int x,int y,int radius);
说明: 参数x,y为圆心坐标,radius为圆半径,用像素个素表示。注意,调用circle()函数画圆时不用当前线型。
不同于ellipse()函数,只用单个半径radius参数调用circle()函数,故屏显纵横比可以自动调节,以产生正确的显示图。
此函数对应的头文件为graphics.h
返回值: 无
例: 画六个同心圆,圆心在(100,100)。
#i nclude&graphics.h&
void main()
int driver,
driver=DETECT;
initgraph(&driver,&mode,&&);
circle(100,100,10);
circle(100,100,20);
circle(100,100,30);
circle(100,100,40);
circle(100,100,50);
circle(100,100,60);
restorecrtmode();
graphics.h画圆弧函数
功能: 函数arc()使用当前绘图色并以实线画一圆弧。
用法: 函数调用方式为void arc(int x,int y,int startangle,int endangle,int radius);
说明: 参数x,y为圆心坐标,startangle与endangle分别为起始角与终止角,radius为半径。圆心坐标和半径以像素个数给出,起始角和终止角以度为单位,0度位于右边,90度位于顶部,180度位于左边,底部是270度。同往常一样,360度与0度重合。角度按逆时针方向增加,但并不要求终止角一定比起始角大。例如指定300度和90度分别为起始角和终止角,与指定300度和450度分别为起始角和终止角可画出相同的弧。大于360度可作为参数,它将被化到0度 ̄360度范围里。函数arc()能画封闭圆,只要取起始角为0度,终止角为360度即可。此函数中,屏显纵横比可自动调节。
arc()函数对应的头文件为graphics.h
返回值: 无
例: 以(200,200)为圆心,100为半径,从0度到120度画圆弧:
#i nclude&graphics.h
void main()
int driver,
driver=DETECT;
initgraph(&driver,&mode,&&);
setcolor(WHITE);
arc(200,200,0,120,100);
restorecrtmode();
graphics.h文件内容
/*graphics.h
DefinitionsforGraphicsPackage.
Copyright(c)BorlandInternational
AllRightsReserved.
#if__STDC__
#define_Cdecl
#define_Cdeclcdecl
#if!defined(__GRAPHX_DEF_)
#define__GRAPHX_DEF_
enumgraphics_errors{/*graphresulterrorreturncodes*/
grNoInitGraph=-1,
grNotDetected=-2,
grFileNotFound=-3,
grInvalidDriver=-4,
grNoLoadMem=-5,
grNoScanMem=-6,
grNoFloodMem=-7,
grFontNotFound=-8,
grNoFontMem=-9,
grInvalidMode=-10,
grError=-11,/*genericerror*/
grIOerror=-12,
grInvalidFont=-13,
grInvalidFontNum=-14,
grInvalidVersion=-18
enumgraphics_drivers{/*definegraphicsdrivers*/
DETECT,/*requestsautodetection*/
CGA,MCGA,EGA,EGA64,EGAMONO,IBM8514,/*1-6*/
HERCMONO,ATT400,VGA,PC3270,/*7-10*/
CURRENT_DRIVER=-1
enumgraphics_modes{/*graphicsmodesforeachdriver*/
CGAC0=0,/*320x200palette0;1page*/
CGAC1=1,/*320x200palette1;1page*/
CGAC2=2,/*320x200palette2:1page*/
CGAC3=3,/*320x200palette3;1page*/
CGAHI=4,/*640x2001page*/
MCGAC0=0,/*320x200palette0;1page*/
MCGAC1=1,/*320x200palette1;1page*/
MCGAC2=2,/*320x200palette2;1page*/
MCGAC3=3,/*320x200palette3;1page*/
MCGAMED=4,/*640x2001page*/
MCGAHI=5,/*640x4801page*/
EGALO=0,/*640x20016color4pages*/
EGAHI=1,/*640x35016color2pages*/
EGA64LO=0,/*640x20016color1page*/
EGA64HI=1,/*640x3504color1page*/
EGAMONOHI=0,/*640x35064Koncard,1page-256Koncard,4pages*/
HERCMONOHI=0,/*720x3482pages*/
ATT400C0=0,/*320x200palette0;1page*/
ATT400C1=1,/*320x200palette1;1page*/
ATT400C2=2,/*320x200palette2;1page*/
ATT400C3=3,/*320x200palette3;1page*/
ATT400MED=4,/*640x2001page*/
ATT400HI=5,/*640x4001page*/
VGALO=0,/*640x20016color4pages*/
VGAMED=1,/*640x35016color2pages*/
VGAHI=2,/*640x48016color1page*/
PC3270HI=0,/*720x3501page*/
IBM8514LO=0,/*640x480256colors*/
IBM8514HI=1/*colors*/
/*Colorsforsetpaletteandsetallpalette*/
#if!defined(__COLORS)
#define__COLORS
enumCOLORS{
BLACK,/*darkcolors*/
LIGHTGRAY,
DARKGRAY,/*lightcolors*/
LIGHTBLUE,
LIGHTGREEN,
LIGHTCYAN,
LIGHTMAGENTA,
enumCGA_COLORS{
CGA_LIGHTGREEN=1,/*PaletteC0ColorNames*/
CGA_LIGHTRED=2,
CGA_YELLOW=3,
CGA_LIGHTCYAN=1,/*PaletteC1ColorNames*/
CGA_LIGHTMAGENTA=2,
CGA_WHITE=3,
CGA_GREEN=1,/*PaletteC2ColorNames*/
CGA_RED=2,
CGA_BROWN=3,
CGA_CYAN=1,/*PaletteC3ColorNames*/
CGA_MAGENTA=2,
CGA_LIGHTGRAY=3
enumEGA_COLORS{
EGA_BLACK=0,/*darkcolors*/
EGA_BLUE=1,
EGA_GREEN=2,
EGA_CYAN=3,
EGA_RED=4,
EGA_MAGENTA=5,
EGA_BROWN=20,
EGA_LIGHTGRAY=7,
EGA_DARKGRAY=56,/*lightcolors*/
EGA_LIGHTBLUE=57,
EGA_LIGHTGREEN=58,
EGA_LIGHTCYAN=59,
EGA_LIGHTRED=60,
EGA_LIGHTMAGENTA=61,
EGA_YELLOW=62,
EGA_WHITE=63
enumline_styles{/*Linestylesforget/setlinestyle*/
SOLID_LINE=0,
DOTTED_LINE=1,
CENTER_LINE=2,
DASHED_LINE=3,
USERBIT_LINE=4,/*Userdefinedlinestyle*/
enumline_widths{/*Linewidthsforget/setlinestyle*/
NORM_WIDTH=1,
THICK_WIDTH=3,
enumfont_names{
DEFAULT_FONT=0,/*8x8bitmappedfont*/
TRIPLEX_FONT=1,/*&Stroked&fonts*/
SMALL_FONT=2,
SANS_SERIF_FONT=3,
GOTHIC_FONT=4
#defineHORIZ_DIR0/*lefttoright*/
#defineVERT_DIR1/*bottomtotop*/
#defineUSER_CHAR_SIZE0/*user-definedcharsize*/
enumfill_patterns{/*Fillpatternsforget/setfillstyle*/
EMPTY_FILL,/*fillsareainbackgroundcolor*/
SOLID_FILL,/*fillsareainsolidfillcolor*/
LINE_FILL,/*---fill*/
LTSLASH_FILL,/*///fill*/
SLASH_FILL,/*///fillwiththicklines*/
BKSLASH_FILL,/*\\\fillwiththicklines*/
LTBKSLASH_FILL,/*\\\fill*/
HATCH_FILL,/*lighthatchfill*/
XHATCH_FILL,/*heavycrosshatchfill*/
INTERLEAVE_FILL,/*interleavinglinefill*/
WIDE_DOT_FILL,/*Widelyspaceddotfill*/
CLOSE_DOT_FILL,/*Closelyspaceddotfill*/
USER_FILL/*userdefinedfill*/
enumputimage_ops{/*BitBltoperatorsforputimage*/
COPY_PUT,/*MOV*/
XOR_PUT,/*XOR*/
OR_PUT,/*OR*/
AND_PUT,/*AND*/
NOT_PUT/*NOT*/
enumtext_just{/*Horizontalandverticaljustification
forsettextjustify*/
LEFT_TEXT=0,
CENTER_TEXT=1,
RIGHT_TEXT=2,
BOTTOM_TEXT=0,
/*CENTER_TEXT=1,alreadydefinedabove*/
TOP_TEXT=2
#defineMAXCOLORS15
structpalettetype{
signedcharcolors[MAXCOLORS+1];
structlinesettingstype{
structtextsettingstype{
structfillsettingstype{
structpointtype{
structviewporttype{
intleft,top,right,
structarccoordstype{
intxstart,ystart,xend,
voidfar_Cdeclarc(intx,inty,intstangle,intendangle,
intradius);
voidfar_Cdeclbar(intleft,inttop,intright,intbottom);
voidfar_Cdeclbar3d(intleft,inttop,intright,intbottom,
intdepth,inttopflag);
voidfar_Cdeclcircle(intx,inty,intradius);
voidfar_Cdeclcleardevice(void);
voidfar_Cdeclclearviewport(void);
voidfar_Cdeclclosegraph(void);
voidfar_Cdecldetectgraph(intfar*graphdriver,intfar*graphmode);
voidfar_Cdecldrawpoly(intnumpoints,intfar*polypoints);
voidfar_Cdeclellipse(intx,inty,intstangle,intendangle,
intxradius,intyradius);
voidfar_Cdeclfillellipse(intx,inty,intxradius,intyradius);
voidfar_Cdeclfillpoly(intnumpoints,intfar*polypoints);
voidfar_Cdeclfloodfill(intx,inty,intborder);
voidfar_Cdeclgetarccoords(structarccoordstypefar*arccoords);
voidfar_Cdeclgetaspectratio(intfar*xasp,intfar*yasp);
intfar_Cdeclgetbkcolor(void);
intfar_Cdeclgetcolor(void);
structpalettetype*far_Cdeclgetdefaultpalette(void);
char*far_Cdeclgetdrivername(void);
voidfar_Cdeclgetfillpattern(charfar*pattern);
voidfar_Cdeclgetfillsettings(structfillsettingstypefar*fillinfo);
intfar_Cdeclgetgraphmode(void);
voidfar_Cdeclgetimage(intleft,inttop,intright,intbottom,
voidfar*bitmap);
voidfar_Cdeclgetlinesettings(structlinesettingstypefar*lineinfo);
intfar_Cdeclgetmaxcolor(void);
intfar_Cdeclgetmaxmode(void);
intfar_Cdeclgetmaxx(void);
intfar_Cdeclgetmaxy(void);
char*far_Cdeclgetmodename(intmode_number);
voidfar_Cdeclgetmoderange(intgraphdriver,intfar*lomode,
intfar*himode);
unsignedfar_Cdeclgetpixel(intx,inty);
voidfar_Cdeclgetpalette(structpalettetypefar*palette);
intfar_Cdeclgetpalettesize(void);
voidfar_Cdeclgettextsettings(structtextsettingstypefar*texttypeinfo);
voidfar_Cdeclgetviewsettings(structviewporttypefar*viewport);
intfar_Cdeclgetx(void);
intfar_Cdeclgety(void);
voidfar_Cdeclgraphdefaults(void);
char*far_Cdeclgrapherrormsg(interrorcode);
voidfar_Cdecl_graphfreemem(voidfar*ptr,unsignedsize);
voidfar*far_Cdecl_graphgetmem(unsignedsize);
intfar_Cdeclgraphresult(void);
unsignedfar_Cdeclimagesize(intleft,inttop,intright,intbottom);
voidfar_Cdeclinitgraph(intfar*graphdriver,
intfar*graphmode,
charfar*pathtodriver);
intfar_Cdeclinstalluserdriver(charfar*name,inthuge(*detect)(void));
intfar_Cdeclinstalluserfont(charfar*name);
voidfar_Cdeclline(intx1,inty1,intx2,inty2);
voidfar_Cdecllinerel(intdx,intdy);
voidfar_Cdecllineto(intx,inty);
voidfar_Cdeclmoverel(intdx,intdy);
voidfar_Cdeclmoveto(intx,inty);
voidfar_Cdeclouttext(charfar*textstring);
voidfar_Cdeclouttextxy(intx,inty,charfar*textstring);
voidfar_Cdeclpieslice(intx,inty,intstangle,intendangle,
intradius);
voidfar_Cdeclputimage(intleft,inttop,voidfar*bitmap,intop);
voidfar_Cdeclputpixel(intx,inty,intcolor);
voidfar_Cdeclrectangle(intleft,inttop,intright,intbottom);
voidfar_Cdeclrestorecrtmode(void);
voidfar_Cdeclsector(intX,intY,intStAngle,intEndAngle,
intXRadius,intYRadius);
voidfar_Cdeclsetactivepage(intpage);
voidfar_Cdeclsetallpalette(structpalettetypefar*palette);
voidfar_Cdeclsetaspectratio(intxasp,intyasp);
voidfar_Cdeclsetbkcolor(intcolor);
voidfar_Cdeclsetcolor(intcolor);
voidfar_Cdeclsetfillpattern(charfar*upattern,intcolor);
voidfar_Cdeclsetfillstyle(intpattern,intcolor);
unsignedfar_Cdeclsetgraphbufsize(unsignedbufsize);
voidfar_Cdeclsetgraphmode(intmode);
voidfar_Cdeclsetlinestyle(intlinestyle,unsignedupattern,
intthickness);
voidfar_Cdeclsetpalette(intcolornum,intcolor);
voidfar_Cdeclsetrgbpalette(intcolornum,
intred,intgreen,intblue);
voidfar_Cdeclsettextjustify(inthoriz,intvert);
voidfar_Cdeclsettextstyle(intfont,intdirection,intcharsize);
voidfar_Cdeclsetusercharsize(intmultx,intdivx,
intmulty,intdivy);
voidfar_Cdeclsetviewport(intleft,inttop,intright,intbottom,
voidfar_Cdeclsetvisualpage(intpage);
voidfar_Cdeclsetwritemode(intmode);
intfar_Cdecltextheight(charfar*textstring);
intfar_Cdecltextwidth(charfar*textstring);
/*****graphicsdrivers*****/
int_Cdeclregisterbgidriver(void(*driver)(void));
intfar_Cdeclregisterfarbgidriver(voidfar*driver);
/*!!These&functions&areNOTuser-callable!!*/
/*!!Theyaretherejustsoyoucanlinkingraphicsdrivers!!*/
void_CdeclCGA_driver(void);
void_CdeclEGAVGA_driver(void);
void_CdeclIBM8514_driver(void);
void_CdeclHerc_driver(void);
void_CdeclATT_driver(void);
void_CdeclPC3270_driver(void);
externintfar_CdeclCGA_driver_far[];
externintfar_CdeclEGAVGA_driver_far[];
externintfar_CdeclIBM8514_driver_far[];
externintfar_CdeclHerc_driver_far[];
externintfar_CdeclATT_driver_far[];
externintfar_CdeclPC3270_driver_far[];
/*****graphicsfonts*****/
int_Cdeclregisterbgifont(void(*font)(void));
intfar_Cdeclregisterfarbgifont(voidfar*font);
/*!!These&functions&areNOTuser-callable,!!*/
/*!!theyaretherejustsoyoucanlinkinfonts!!*/
void_Cdecltriplex_font(void);
void_Cdeclsmall_font(void);
void_Cdeclsansserif_font(void);
void_Cdeclgothic_font(void);
externintfar_Cdecltriplex_font_far[];
externintfar_Cdeclsmall_font_far[];
externintfar_Cdeclsansserif_font_far[];
externintfar_Cdeclgothic_font_far[];
企业信用信息

我要回帖

更多关于 truetone是什么意思 的文章

 

随机推荐