UNKNOWN //************************************** // Name: simple banner using c graphics // Description:The sole purpose of this code is a easy to understand graphics design for beginners. // By: Italian Stallion // // // Inputs:None // // Returns:None // //Assumes:None // //Side Effects:None //This code is copyrighted and has limited warranties. //Please see http://www.Planet-Source-Code.com/xq/ASP/txtCodeId.14208/lngWId.3/qx/vb/scripts/ShowCode.htm //for details. //************************************** #include<iostream.h> #include<conio.h> #include<graphics.h> #include<stdlib.h> #include<dos.h> void main() { int gd=DETECT,gm; initgraph(&gd,&gm,"c:\\tech\\tc\\bgi"); setcolor(14); settextstyle(10,0,4); outtextxy(230,80,"A.I.M.S."); settextstyle(8,0,2); outtextxy(50,150,"Advance Institute of Management Studies"); setcolor(2); rectangle(20,400,603,431); for (int i=0; i<=580; i++) { setfillstyle(9,4); //sound(200+4*i); bar(21,401,21+i,430); delay(20); } settextstyle(11,0,4); outtextxy(260,450,"100% Complete"); setcolor(14); settextstyle(5,0,4); outtextxy(220,200,"Wel-Come"); //nosound(); cleardevice(); //Second half textboxes setlinestyle(0,1,3); setcolor(5); rectangle(10,100,200,260); setcolor(6); rectangle(10,10,600,90); setcolor(10); settextstyle(10,0,3); outtextxy(200,10,"A.I.M.S."); settextstyle(8,0,1); outtextxy(160,55,"Total Quality Coaching"); setcolor(12); settextstyle(6,0,1); outtextxy(15,100,"Courses in Computer:"); outtextxy(15,120,"* Programming in C++,"); outtextxy(15,140,"C#,Java,VB,VB.NET"); outtextxy(15,180,"* Advance animation"); outtextxy(15,200,"in MAYA (3D)."); rectangle(210,100,600,260); setcolor(14); outtextxy(220,100,"Top Quality lectures in Physics,Maths,Chemistry. "); outtextxy(220,120,"Teaching aids,CD's,books and precise notes"); outtextxy(220,140,"Theory + C.E.T"); outtextxy(220,180,"Various practicals on memory techniques."); outtextxy(220,200,"Spoken English - Fluency Builder"); outtextxy(220,220,"Personality development and much more."); setcolor(7); rectangle(10,270,600,450); setcolor(15); outtextxy(20,280,"For optimistic future contact:"); outtextxy(20,300,"Mr.Rajendra Kore"); settextstyle(2,0,4); outtextxy(50,325,"Master Trainer,B.E (Electronics),M.B.A." ); settextstyle(6,0,1); outtextxy(20,340,"Gurunath Arcade,"); outtextxy(20,360,"Kelbai Road,Kudal."); setlinestyle(0,0,1); ellipse(360,360,0,360,30,40); ellipse(360,360,90,270,40,40); ellipse(360,360,0,360,25,35); ellipse(360,360,0,360,20,30); ellipse(360,360,0,360,15,25); ellipse(360,360,0,360,10,20); ellipse(360,360,0,360,5,15); setcolor(RED); setfillstyle(1,RED); floodfill(360,360,getmaxcolor()); setfillstyle(1,BLUE); floodfill(351,360,getmaxcolor()); setlinestyle(0,0,1); setfillstyle(1,MAGENTA); floodfill(346,360,getmaxcolor()); setfillstyle(1,CYAN); floodfill(341,360,getmaxcolor()); setfillstyle(1,LIGHTGRAY); floodfill(336,360,getmaxcolor()); setfillstyle(1,BROWN); floodfill(331,360,getmaxcolor()); setfillstyle(1,YELLOW); floodfill(326,360,getmaxcolor()); setcolor(BLACK); line(330,360,390,360); line(360,320,360,400); setcolor(RED); line(360,360,420,320); line(360,360,420,325); line(360,360,425,328); outtextxy(400,360,"Empowering your future!!!"); ellipse(425,322,0,360,4,5); getch(); }