词条 | sector |
释义 | 函数名: sector功 能: 画并填充椭圆扇区 用 法: void far sector(int x, int y, int stangle, int endangle); 程序例: #include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> int main(void) { /* request auto detection */ int gdriver = DETECT, gmode, errorcode; int midx, midy, i; int stangle = 45, endangle = 135; int xrad = 100, yrad = 50; /* initialize graphics and local variables */ initgraph(&gdriver, &gmode, ""); /* read result of initialization */ errorcode = graphresult(); if (errorcode != grOk) /* an error occurred */ { printf("Graphics error: %s\", grapherrormsg(errorcode)); printf("Press any key to halt:"); getch(); exit(1); /* terminate with an error code */ } midx = getmaxx() / 2; midy = getmaxy() / 2; /* loop through the fill patterns */ for (i=EMPTY_FILL; i<USER_FILL; i++) { /* set the fill style */ setfillstyle(i, getmaxcolor()); /* draw the sector slice */ sector(midx, midy, stangle, endangle, xrad, yrad); getch(); } /* clean up */ closegraph(); return 0; } 腕表品牌Sector1973年创立,因钻研运动腕表而打响名堂,极速冒起。以精确、创新、高技术及配合运动员需要为品牌理念和创作轴心,腕表深受运动员垂青。四大系列包括攀山、海洋、竞赛、生活时尚,各具设计特色和功能特性,均是为热爱户外活动和白领一族等专业人士而设,深受专业人士爱戴,包括自由潜水员Patrick Musium、 速度滑雪运动员Simone Origone和徒手攀岩员Chris Sharma。品牌成名作之一,是由自由潜水运动员Patrick Musium亲自操刀设计的海洋系列——Sector Master 1000腕表:将追求时间精准的理念投放在设计上。 |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。