Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dumb Question about Graphics

Status
Not open for further replies.

Jasp

Programmer
Oct 22, 1999
2
CA
I have been programming in C for a while now and am tired of that window with the white background and black letters.<br>
Can anyone give me any info on how to include Graphics with my C programs?<br>
<br>
<br>
<br>

 
Their are many functions that you can use that are in the graphics.h header file. Specifically for example to change the background color use the textbackground(BLUE); function in conio.h, then follow with clrscr(); to change the entire background color to blue. If you want to change the text color you can use the textattr function. Hope this helps<br>
tom moses
 
Another one you can use is textattr(BLUE + BLINK);<br>
cprintf(&quot;............);<br>
<br>
hope this helps to beef up your program headers and such.
 
It depends on which environment your C program is running. On dos system , You have to register the graphics driver. On Windows program , you will have to use the API's to change the colour.<br>
Does it answer your question ?<br>
<br>
Thanx<br>
Siddhartha Singh<br>
<A HREF="mailto:ssingh@aztecsoft.com">ssingh@aztecsoft.com</A>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top