Important alert: (current site time 7/15/2013 4:13:15 AM EDT)
 

VB icon

simple banner using c graphics

Email
Submitted on: 6/14/2013 11:54:09 AM
By: Italian Stallion  
Level: Beginner
User Rating: Unrated
Compatibility: C, C++ (general)
Views: 1280
(About the author)
 
     The sole purpose of this code is a easy to understand graphics design for beginners.
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
//**************************************
// 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
//
//This code is copyrighted and has// limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=14208&lngWId=3//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();
}


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.