Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

The basic elements of computer graphics

Rating
-
Sold
-
Pages
80
Uploaded on
31-01-2024
Written in
2019/2020

In today life, computer graphics has now become a common element in user interfaces, T.V. commercial motion pictures. It is the creation of pictures with the help of a computer. Today computer graphics is entirely different from the earlier one. It is not possible. It is an interactive user can control the structure of an object of various input devices.

Show more Read less
Institution
Course

Content preview

r

, Computer Graphics


About the Tutorial
To display a picture of any size on a computer screen is a difficult process.
Computer graphics are used to simplify this process. Various algorithms and
techniques are used to generate graphics in computers. This tutorial will help you
understand how all these are processed by the computer to give a rich visual
experience to the user.


Audience
This tutorial has been prepared for students who don’t know how graphics are
used in computers. It explains the basics of graphics and how they are
implemented in computers to generate various visuals.


Prerequisites
Before you start proceeding with this tutorial, we assume that you are already
aware of the basic concepts of C programming language and basic mathematics.


Copyright & Disclaimer
 Copyright 2015 by Tutorials Point (I) Pvt. Ltd.

All the content and graphics published in this e-book are the property of Tutorials
Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy,
distribute or republish any contents or a part of contents of this e-book in any
manner without written consent of the publisher.

We strive to update the contents of our website and tutorials as timely and as
precisely as possible, however, the contents may contain inaccuracies or errors.
Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy,
timeliness or completeness of our website or its contents including this tutorial. If
you discover any errors on our website or in this tutorial, please notify us at





i

, Computer Graphics


Table of Contents
About the Tutorial .................................................................................................................................. i

Audience ................................................................................................................................................ i

Prerequisites .......................................................................................................................................... i

Copyright & Disclaimer ........................................................................................................................... i

Table of Contents .................................................................................................................................. ii


1. COMPUTER GRAPHICS – BASICS......................................................................................... 1

Cathode Ray Tube ................................................................................................................................. 1

Raster Scan ............................................................................................................................................ 2

Application of Computer Graphics ......................................................................................................... 3


2. LINE GENERATION ALGORITHM ......................................................................................... 5

DDA Algorithm ...................................................................................................................................... 5

Bresenham’s Line Generation ................................................................................................................ 6

Mid-Point Algorithm .............................................................................................................................. 9


3. CIRCLE GENERATION ALGORITHM ................................................................................... 11

Bresenham’s Algorithm ....................................................................................................................... 11

Mid Point Algorithm ............................................................................................................................ 13


4. POLYGON FILLING ............................................................................................................ 16

Scan Line Algorithm ............................................................................................................................. 16

Flood Fill Algorithm ............................................................................................................................. 17

Boundary Fill Algorithm ....................................................................................................................... 18

4-Connected Polygon ........................................................................................................................... 18

8-Connected Polygon ........................................................................................................................... 19

Inside-outside Test .............................................................................................................................. 21




ii

, Computer Graphics


5. VIEWING AND CLIPPING................................................................................................... 24

Point Clipping ...................................................................................................................................... 24

Line Clipping ........................................................................................................................................ 24

Cohen-Sutherland Line Clippings ......................................................................................................... 25

Cyrus-Beck Line Clipping Algorithm ..................................................................................................... 27

Polygon Clipping (Sutherland Hodgman Algorithm) ............................................................................. 28

Text Clipping ........................................................................................................................................ 29

Bitmap Graphics .................................................................................................................................. 31


6. 2D TRANSFORMATION ..................................................................................................... 33

Homogenous Coordinates ................................................................................................................... 33

Translation .......................................................................................................................................... 33

Rotation .............................................................................................................................................. 34

Scaling ................................................................................................................................................. 36

Reflection ............................................................................................................................................ 37

Shear ................................................................................................................................................... 38

Composite Transformation .................................................................................................................. 39


7. 3D GRAPHICS ................................................................................................................... 41

Parallel Projection ............................................................................................................................... 41

Orthographic Projection ...................................................................................................................... 42

Oblique Projection............................................................................................................................... 43

Isometric Projections ........................................................................................................................... 43

Perspective Projection ......................................................................................................................... 44

Translation .......................................................................................................................................... 45

Rotation .............................................................................................................................................. 46

Scaling ................................................................................................................................................. 47

Shear ................................................................................................................................................... 48

iii

Written for

Institution
Course

Document information

Uploaded on
January 31, 2024
Number of pages
80
Written in
2019/2020
Type
Class notes
Professor(s)
Mr. jose george
Contains
Bca, mca

Subjects

$18.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
rrajeemol

Get to know the seller

Seller avatar
rrajeemol Self
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
3
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions