Quick links
Latest articles
Internship
Members
New...
Algorithms
Discrete Mathematics
Big data
Languages
C
C++
C++ STL
Java
Data Structure
C#.Net
Android
Kotlin
SQL
Web
PHP
Python
JavaScript
CSS
Ajax
Node.js
Web prog.
Programs
C
C++
DS
Java
C#
Python
Aptitude
C
C++
Java
DBMS
Interview
C
Embedded C
Java
SEO
HR
CS Subjects
CS Basics
O.S.
Networks
DBMS
Embedded Systems
Cloud Computing
Machine learning
CS Organizations
Linux
DOS
More...
Articles
Puzzles
News/Updates

Home » C programming language

Graphics in C/C++: Introduction and Graphics Modes in Turbo C Compiler



In this article, we are going to learn about Graphics in C/C++: its introduction and graphics modes in Turbo C Compiler.
Submitted by Mahima Rao, on October 05, 2018

In this advanced learning tutorial, you will learn more about the C/C++ feature "Graphics" by using which you can make your C program even more interactive and attractive. Graphics in C/C++ can be used to draw different shapes, animations, projects, and games and can also display text in different fonts, colors and a lot more. You can draw circles, lines, rectangles and many geometrical figures through Graphics. Through this tutorial, we will be introducing you to some of the Advance topics of C/C++.

What is graphics?

The representation of an object in a Pictorial view is called a graphics which is being used in every kind of application nowadays, through this tutorial you will get a great help if are thinking of creating a GUI application in C/C++.

Before programming Graphics in C/C++ we will learn a bit more about the graphics. Programming of graphics in C/C++ will be done on TURBO C Compiler. TURBO C Compiler C/C++ is a good option according to the introduction of the programming in graphics.

In the next tutorial of C/C++ Advance learning, we will start learning about Modes in C/C++ Graphics.

Graphics in C/C++: Modes in Turbo C Compiler

Now, we are going to tell you about the modes used in C/C++.

TURBO C Compiler supports 2 types of modes:

  1. Text Mode
  2. Graphics Mode

First of all, we will learn about Text Mode, with the help of which you can create an interactive program but the functions are limited in it. TEXT MODE works on the Text Mode Co-ordinate system, it means that the text mode divides the screen in the form of rows and columns by default in the compiler.

Normally the screen is divided into the form of 80-columns and 25-rows. That is, if you want to print any character on the upper-left corner, the position according to the coordinate system will be a position (X, Y) = (0,0).

Similarly, if you want to print any Character in the center of the screen then 80-columns and 25 rows according to the position (X, Y) = (40,12) on the screen.

So here X number of Columns and Y number of Rows represent. So far, you have understood that if we increment the value of X, then the cursor on the screen will be left-to-right move and if the value of Y is in Increase the cursor to the top-to-bottom move. This is a very important concept to remember in graphics.

That's all in C/C++ Advance Learning Tutorial for now. If you have any doubts on the topic mentioned then you can ask your question. Next, we will learn about some of the basic functions of Text Mode and use them in a simple program.






Quick links:
C FAQ(s) C Advance programs C/C++ Tips & Tricks Puzzles JavaScript CSS Python Linux Commands PHP Android Articles More...

Featured post:
Introduction to Linux (Its modes, Safety, Most popular Applications)
Linux Best Distribution Software (Distros) of 2018

Was this page helpful? Please share with your friends...

Are you a blogger? Join our Blogging forum.

Comments and Discussions



Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing » Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com (2015-2018), Some rights reserved.