|
![]() | 作者: peter [peter]
![]() |
登录 |
tc2.0可以自定义吗??? 能像photoshop那样的 RGB 吗,,或是 CMYK 之类的的颜色设置 我觉得它给出的颜色太单调了,想作些颜色上的调整(在我的课程设计上) 如果两种颜色叠加在一起,可不可把上面那块颜色的透明度调得透明一点~~~ 请各位帮一下,给小弟回个话。如:什么函数之类的东东,或是有类似的例(呵呵最好啦) ![]() ![]() ![]() ![]() |
地主 发表时间: 04-05-29 21:48 |
![]() | 回复: lida1818 [lida1818] ![]() |
登录 |
你有的是时间,还有119天啊![]() #include<dos.h> #include<stdio.h> #include<conio.h> void initgraphs(int Vmode) { union REGS r; r.h.al=Vmode; r.h.ah=0; int86(0x10,&r,&r); } void putpoint(int x,int y,int color_code) { union REGS r; r.h.ah=12; r.h.al=color_code; r.x.dx=x; r.x.cx=y; int86(0x10,&r,&r); } void main(void) { register long i; register int j,k,c=0; register startx,starty; initgraphs(0x5b); for(j=0;j<480;j++) { for(k=0;k<640;k++) putpoint(j,k,c); c++; if(c>256) c=0; } getch(); for(c=0;c<256;c++) { startx=(c/18)*34; starty=(c%18)*34; for(j=0;j<34;j++) { for(k=0;k<34;k++) { putpoint(startx+j,starty+k,c); } } } getch(); } |
B1层 发表时间: 04-05-29 22:19 |
![]() | 回复: peter [peter] ![]() |
登录 |
呵呵。。。。。。 还真的有例啊-----happy 再次谢了 |
B2层 发表时间: 04-05-30 11:21 |
|
20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon
粤ICP备05087286号