level 7
照着教程做的,发现不能用,不知问题出在哪,自己已经无语一个晚上了……
#include<graphics.h>
#include<stdio.h>
void main()
{
float x=5.0f,y=5.0f;
float r=5.0f;
initgraph(720,480);
cleardevice();
setfillcolor(EGERGB(0xff,0x0,0x80));
ege_fillellipse(x-r,y-r,2*r,2*r);
getch();
closegraph();
}
可以执行,但不能出图形
2012年09月10日 14点09分
1
level 13
方案一 ege_fillellipse 改为 fillellipse
方案二 如果你需要使用ege_fillellipse,那么你的颜色需要使用EGERGBA,设置alpha为非0值才有效果
2012年09月10日 16点09分
6
真是太感谢了
2012年09月11日 05点09分