In Computer Graphics Terms Used in Library.

Programs For Computer Graphics
Computer Graphics Calculator
Computer Graphics Presentation

#include <graphics.h>

 

This is Define Graphics

int gDriver=DETECT,gMode;

 

gDriver is used to DETECT Drivers list in Path and gMode is Mode used For display its is automatically used

 initgraph(&gDriver,&gMode,"C:\\TC\\BGI");

initgraph is to initialize these Graphics

 C:\\TC\\BGI

This is path where Computer Graphics is Stores

 cleardevice();

cleardevice is Used to clean screen similar as clrscr().

 setbkcolor(15); Or setbkcolor(WHITE);
NameValue
BLACK0
BLUE1
GREEN2
CYAN3
RED4
MAGENTA5
BROWN6
LIGHTGRAY7
DARKGRAY8
LIGHTBLUE9
LIGHTGREEN10
LIGHTCYAN11
LIGHTRED12
LIGHTMAGENTA13
YELLOW14
WHITE15

These are list Colors used for display.

putpixel(x1,y1,RED);

x1 is x axis Coordinate
y1 is y axis Coordinate
RED is COLOR USED
This is used for Display one pixel Dot in certain x,y Coordinate .

Computer Graphics Presentation

(Visited 230 times, 1 visits today)

Written by:

One thought on “Computer Graphics

  • 14/03/2018 at 9:37 am
    Permalink

    I am not sure where you’re getting your information, however good topic. I must spend some time learning much more or working out more. Thanks for great info I used to be searching for this information for my mission.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Translate »