Docsity

Basics of Computer Graphics, Study Guides, Projects, Research of Computer Graphics and Animation

Partial preview of the text

Download Basics of Computer Graphics and more Study Guides, Projects, Research Computer Graphics and Animation in PDF only on Docsity!

Course Coordinator : Mrs Deshmukh A.P.

Basics of

Computer Graphics

Course Coordinator : Mrs Deshmukh A.P. Computer Graphics is about animation (films)

Pixel (picture element) Course Coordinator : Mrs Deshmukh A.P. a pixel is the smallest piece of information in an image.  Pixels are normally arranged in a regular 2D grid , and are often represented using dots or squares.

Pixel (picture element) Course Coordinator : Mrs Deshmukh A.P.  Each pixel is a sample of an original image, where more samples typically provide a more accurate representation of the original.  The intensity of each pixel is variable; in color systems, each pixel has typically three or four components such as red, green, and blue, or cyan, magenta, yellow, and black.

Course Coordinator : Mrs Deshmukh A.P.

  • Actual resolution is determined by the video controller. - Most monitors can operate at several different resolutions. They are - 640 X 480 - 800 X 600 - 1024 X 768 - 1152 X 864 - 1280 X 1024
  • As the resolution increases, image on the screen gets smaller.

Resolution Settings Course Coordinator : Mrs Deshmukh A.P.

Text mode

  • Text mode is a personal computer display setting that divides the display screen into 25 rows and 80 columns in order to display text without images.
  • In text mode, each box can contain one character. Text mode contrasts with graphics mode, which features an array of pixels instead of text boxes.
  • Text mode is also known as character mode

or alphanumeric m Co o urse d Co e or . dinator : Mrs Deshmukh A.P.

Course Coordinator : Mrs Deshmukh A.P. initgraph(&gd,&gm,"c:\turboc3\bgi"); Graphics mode graphics Function

  • GRAPHICS.H ,this file contains definitions and

explanation of all the graphic functions and constants While GRAPHICS.LIB file contains standard graphic functions.

  • InitGraph:
  • Initializes the graphics system.

Declaration: void initgraph(int *graphdriver, int *graphmode, char *pathtodriver);

Course Coordinator : Mrs Deshmukh A.P. eg: void initgraph(&gd,&gm,”path of bgi file”);

path where initgraph looks for graphics drivers (*.BGI) first. Course Coordinator : Mrs Deshmukh A.P.

A graphics pipeline

  • A graphics pipeline can be divided into three main parts: Application, Geometry and Rasterization. Course Coordinator : Mrs Deshmukh A.P.

the next step inCtouhrseeCooprdiinpatore:^ MlirsnDeesh.mukh^ A.P. A graphics pipeline

object Course Coordinator : Mrs Deshmukh A.P.

Geometry

  • The geometry step is responsible for the majority of the operations with polygons and their vertices , can be divided into the following five tasks.
  • It depends on the particular implementation of how these tasks are organized as actual parallel pipeline steps.