getlinesettings
函数
getlinesettings是一个函数。
用法
用 法: void far getlinesettings(struct linesettingstype far *lininfo):
示例
程序例:
#include
#include
#include
#include
/* the names of the line styles supported */
};
int main(void)
{
/* request auto detection */
int gdriver = DETECT, gmode, errorcode;
struct linesettingstype lineinfo;
int midx, midy;
char lstyle[80], lpattern[80], lwidth[80];
/* initialize graphics and local variables */
/* read result of initialization */
errorcode = graphresult();
if (errorcode != grOk) /* an error occurred */
{
getch();
exit(1); /* terminate with an error code */
}
midx = getmaxx() / 2;
midy = getmaxy() / 2;
/* get information about current line settings */
getlinesettings(&lineinfo);
/* convert line information into strings */
lname);
lineinfo.upattern);
lineinfo.thickness);
/* display the information */
settextjustify(CENTER_TEXT, CENTER_TEXT);
outtextxy(midx, midy, lstyle);
/* clean up */
getch();
closegraph();
return 0;
}
参考资料
最新修订时间:2024-03-21 23:42
目录
概述
用法
示例
参考资料