Курсовая работа: Програмний комплекс для роботи розробки візитних карток
buttons[n][2]=x2;
buttons[n][3]=y2;
}
int imagearea()
{ m.getmousepos(button,x,y);
if((x>100)&&(y>50)&&(x<635)&&(y<450))
{return(1);}
else {return(0);}
}
void myrect(int x1,int y1,int x2,int y2)
{ line(x1,y1,x2,y1);
line(x1,y1,x1,y2);
line(x1,y2,x2,y2);
line(x2,y1,x2,y2);
}
void back(int x1,int y1,int x2,int y2,int mode)
{ int ch;char c2;
if(mode==0)
{
ofstream outfile("im~temp.dat");
for(int a=x1;a<=x2;a++)
{ for(int b=y1;b<=y2;b++)
{ ch=getpixel(a,b);
outfile<<(char)(ch+28);
}
}
outfile.close();
}
else if(mode==1)