SlideShare a Scribd company logo
 Definition
 Classification of Computer Graphics
 Components of Computer Graphics
 SRGP (Simple Raster Graphics
Package)
 Drawing with SRGP (With Example)
 Basic Interaction Handling
 Raster Graphics Features
 Limitation of SRGP
 Hard Copy Technologies
 Display Technologies
 Raster Scan Display
 Random (Vector) Scan Display
 Video Controller
 Raster Scan Display Processor
Thank
You!
Computer Graphics is the field of computer
science in which we are interested in
generating objects and images using pixels
(Picture Element)
The same showing Titanic in the sea
was possible through graphics designing
with MAYA software
The movies are like Spiderman,
Superman, X-Man and Batman and so on
have generated special effect using
computer Graphic.
Computer Programme is a collection of
algorithm and data structure. In the
same convention computer graphics has
been defined as the collection of data
structure, graphics, algorithm and any
higher level language. We can use any
of the higher language like C, C++, Java
or any of the graphic package like
MAYA, 3D MAX, Blender and Flash to
generate graphics of our choice.
Computer Graphics is the discipline of
producing picture or image using a
computer including modelling creation
manipulation and storage of geometric
objects and converting a scene to an
image or the process of transformation,
shading rasterization of the image.
1. Passive Computer Graphics:-
This is also called offline graphics.
Once the graphics programme is develop
the user has no control over the display
even if he or she wishes to change display
they cannot
For example:-
Screen Saver, Gif file,
passive Graphics can be compared to
static webpages using (HTML), where user
has no control over the contents.
2. Interactive Computer Graphics:-
This is also called online graphics.
User can dynamically control the display on
the monitor. Display are controlled by
mouse, trackball and joystick. This is also
called (ICG) because, the user can indirect
with the machine.
For example:-
Videogames, CAD
(Computer Aided Design) and Computer
Generated image.
Interactive Computer Graphics
Video Games
1. Digital Memory Buffer:-
This is the place
where images or pictures are stored as an
array (Matrix of 0 and 1), 0 represent darkness
and 1 represent image or picture.
This is also called frame buffer and it help to
store image in bit form.
2. TV Monitor:-
Monitor helps us to view the
display and they make use of CRT (Cathode
Ray Tube)
3. Display Controller:-
It is in interface b/w
digital memory buffer and TV monitor. It’s job is
to pass the content of frame buffer to the
monitor.
The display controller reads each succession
byte of data from frame buffer memory and
converts 0’s and 1’s into video CD.
 SRGP stands for simple Raster Graphics Package.
 SRGP consists of library functions that describe custom
data types and constants.
 SRGP procedures operate on canvases (Painting
Board), which is a 2D array of pixels (virtual frame
buffer).
 The depth will be the number of planes requested by
designated application.
 Every canvas has its local coordinate system.
 Multiple windows cannot be controlled by SRGP
application
The origin for the local coordinate system is the
lower-left corner of the canvas, with the x-coordinate
increasing to the right and the y-coordinate increasing
toward the top.
Drawing in integer raster graphics
packages such as SRGP is like plotting
graphs on graph paper with a plotting
graphs on graph paper with a very fine
grid. The grid varies from 80 to 120
points per inch on conventional display
to 300 or more on high-resolution
display.
For example:-
Now we draw a pixel (200,300) on 1366 x 768 pixel screen.
Program-
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
Void main()
{
int gd=DETECT, gm;
clrscr();
initgraph(&gd, &gm, “C:TCBGI”);
putpixel(200,300, WHITE);
getch();
closegraph();
}
Steps:-
1. First you figure out where the origin(0,0) is.
2. Then what primitives (line, pixel, circle,
rectangle ellipse and triangle) are provided
to you.
3. And what attributes these primitives can
have such as for line-
𝑙𝑖𝑛𝑒(𝑥1, 𝑦1, 𝑥2, 𝑦2)
Where-
𝑥1- x coordinate of starting point.
𝑦1- y coordinate of starting point.
𝑥2- x coordinate of ending point.
𝑦2- y coordinate of ending point.
Output:- Screen Resolution(1366x768)
.
1. Canvases:-
An SRGP canvas is a data
structure that stores an image as a 2D array of
pixels. It is also stores some control information,
the size and attributes of the image.
Canvas is an area of memory which is used as
a buffer between graphics software and
graphics hardware.
Once canvas is create its size cannot changed.
𝑖𝑛𝑡 𝑆𝑅𝐺𝑃_𝑐𝑟𝑒𝑎𝑡𝑒𝐶𝑎𝑛𝑣𝑎𝑠(𝑖𝑛𝑡 𝑤𝑖𝑑𝑡ℎ, 𝑖𝑛𝑡 ℎ𝑒𝑖𝑔ℎ𝑡);
Canvas
It is desirable to restrict the effect of
graphics primitives to a sub region of the
active canvas. To facilitate this, SRGP
maintains a clip rectangle attribute. Likes
any attribute, the clip rectangle can be
changed at any time, and its most recent
setting is stored with the canvas’s attribute
group.
Portion which is either inside or
outside of specific region or space called
as clipping.
Here the default clipping rectangle is the
full canvas, so we can call it clipping
rectangle.
It is often called bitBlt (bit block transfer) or
pixBlt (pixel block transfer) when
implemented directly in hardware.
𝑣𝑜𝑖𝑑 𝑆𝑅𝐺𝑃_𝑐𝑜𝑝𝑦𝑃𝑖𝑥𝑒𝑙(𝑖𝑛𝑡 𝑠𝑜𝑢𝑟𝑐𝑒𝐶𝑎𝑛𝑣𝑎𝑠𝐼𝐷,
𝑟𝑒𝑐𝑡𝑎𝑛𝑔𝑙𝑒 𝑠𝑜𝑢𝑟𝑐𝑒𝑅𝑒𝑐𝑡, 𝑝𝑜𝑖𝑛𝑡 𝑑𝑒𝑠𝑡𝐶𝑜𝑟𝑛𝑒𝑟);
Guidelines-
• It can implemented as nested for loop for
each pixel.
• It can do more than just move an array of
pixel from source to destination.
• Copy pixel was faster within local image
memory.
• copyPixel that can make copy subject to one
or more source read or destination write task.
• CopyPixel facility is available to write multi-
pixel.
• SRGP provides no support for displaying 3D
geometry applications.
• It does not support object level operations,
such as “delete”, “move”, “change colour”,
because SRGP keeps no record of the
actions.
• Multiple windows cannot be controlled by
SRGP application.
• It cannot refresh a screen a screen if the
image is damaged by other software.
• It cannot rescan convert the primitives(lines,
rectangles, circle and arc etc.) to produce an
image for display on a device with a different
resolution.
Hard Copy Technology
We can obtain hard-copy output for our
image in several formats for presentations,
we can send image files to devices or
services that will produce 35 mm slides. To
put image on film, we can simply
photograph a scene displayed on a video
monitor and we can put our pictures on
paper by directing graphics output to a
printer or plotter.
The Quality of the pictures obtained from a
device depends on dot size and the
number of dots per inch, or lines per inch,
that can be displayed.
Hard Copy Technology
Printers produce output by either impact
and nonimpact.
:-
Impact printers press formed
character faces against an inked ribbon
onto the paper.
Example:- A line printer, Dot-Matrix
Printer, Daisy-Wheel Printer, Drum
Printer, and Chain Printer.
Hard Copy Technology
:-
Nonimpact printers and plotters
use laser techniques, ink-jet sprays,
xerographic processes (using in
Photocopying machines), electrostatic
methods and electro thermal methods
to get image onto paper.
Example:- Laser Printer, Ink-jet Printer,
Thermal Printer and plotter.
Display Technology
The display device developed in the mid
1960 and in common use until the mid
1980 are called.
• Vector
• Stroke
• Line Drawing
• Calligraphic Display
Display Technology
CRT (Cathode Ray Tube)
• Raster Display
• Random Display
LCD (Liquid Crystal Display)
LED (Light Emitting Diode)
CRT (Cathode Ray Tube)
The quality of display image is every
important in most application on computer
graphics.
CRT was the only available device, which
was capable of converting computer
electrical signal in variable image at high
speed.
CRT is the best suited for ICG (Interactive
Computer Graphics), a beam of electron.
Cathode Ray emitted by electron gun and
passes through focussing and deflection
system that direct the beam on a point on
the phosphor codded is uses
Cathode Ray Tube
Cathode Ray Tube
:-
In raster scan system, the electron
beam is swept across the screen, one row
at a time from top to bottom. As the
electron beam moves across each now,
the beam intensity is turned on and off.
Picture definition is stored in memory area
called refresh buffer or frame buffer. The
memory area hold the set of intensity
value for all the screen point. Each screen
point is referred to as pixel.
Raster Scan Display
Raster Scan Display
Simple Raster Display System
System Bus
CPU
Frame
Buffer
System
Memory
Video
Controller
Monitor
Peripheral
Devices
Cathode Ray Tube
:-
In this technique, the electron beam is
directed only to the part of the screen, where
the picture is to be drawn rather scanning from
left to right and top to bottom as Raster scan. It
also called vector display, Stroke writing
display. Picture definition is stored as a set of
line drawing and on an area of memory
referred to as the refresh display file to display
a specified picture the system cycles through
the set of commands are processed, the
system cycles back to the first line command in
the list.
Random Scan Display
Random Scan Display
Random Display System
System Bus
CPU
Display
Processor
System
memory
Monitor
Peripheral
Device
Random Scan Display Raster Scan Display
It can only draw lines and
characters using
mathematical formulae and
functions.
[Perfect for “Painting”]
It can draw filled with
colours (Complex
Drawings).
[Perfect for “Drawing”]
Video controller is not
required.
Video Controller is required.
Electronic beam is directed
to only part where image is
to be drawn.
Electronic Beam is directed
to whole screen for drawing
an image or object.
Picture definition is stored
as set of line drawing
instructions(command) in a
refresh display file.
Picture definition is stored
as group of points or set of
points known as pixels in a
refresh buffer area.
It is more expensive and
high resolution.
Small file size
It is less expensive and
global resolution.
Large file size
Editing is easy (picture
clarity does not affect)
Editing is difficult (Picture
quality affect according to
raster application )
Video Controller
A fixed area of the system memory is
reserved for frame buffer and the video
controller is given direct access to the
frame buffer memory.
It is an expansion card whose function is
to generate and output images to a
display. When referring to early machines,
the card is sometimes referred to as a
graphics controller, when the cards were
typically integrated onto the motherboard
itself.
Such as graphic card
Video Controller
For example:-
You are asking a local resident
directions to a hotel. You cannot understand
anything this person is telling you no matter
how hard you listen. Luckily, someone who
speaks their language and yours approaches
the person and begins translating for the both
of you. After a few exchanges of dialogue, you
are able to obtain the directions and make your
war to the hotel. A video card works in the
exact same way. Without it, a picture would
never appear on our computer monitors and we
would constantly be viewing a blank screen,
making the computer completely useless.
Raster Scan Display Processor
Raster System containing a separate
display processor, sometimes referred to
as a graphics controller or a display
coprocessor.
The purpose to display processor is to free
the CPU from the graphics cores.
Display processor are designed to-
• Digitizing a picture definition given in an
application programme into a set of pixel
intensity value for storage in the frame
buffer. This digitization process is called
scan conversion.
Raster Scan Display Processor
• Perform additional operations such as-
• Generating various line style (dashed,
doted and solid).
• Displaying colour areas.
• Performing transformations and
manipulations on displayed object.
• Interface with interactive input devices
such as mouse.
Input Device for Operator
Interaction
There are five basic logical devices:
1. Locator: To indicate a position or
orientation.
• Tablet
• Trackball
• Joystick
• Touch panel
• Light pen
• Mouse
2. Pick: To select a displayed entity.
3. Valuator: To input a single real number.
4. Keyboard: To input a character strings.
5. Choice: To select from a set of possible
actions or choices.
Once you how to draw basic shapes and text, your next step is to
learn how to write interactive programs that communicate
effectively with the user.
1. Human Factors:-
The designer of an interactive
program must deal with many matter that do not arise in a non
interactive, batch program, they are called human factors of a
program, such as its look and feel and its ease of learning and of
use.
Guidelines:-
a. Provide simple and consistent interaction sequences.
b. Do not overload the user with too many different options and
styles.
c. Show the available options clearly at every stage of the
interaction.
2. Logical Input/output Devices:-
A major goal
in designing graphics packages is device
independence, which enhances portability of
applications.
a. Logical Input Devices:-
Support for a set of logical input
devices.
Two types of devices-
i. Locator-
A device for specifying screen
coordinate and the state of one or more associated
buttons.
ii. Keyboard-
A device for specifying character string
b. Logical Output Device-
• Primitives are specified in terms of an
abstract integer coordinate system .
• The application does not need to set
the individual pixels in the frame
buffer.
c. Sampling versus event driven
processing-
There are two fundamental
techniques for receiving information
created by user interactions.
i. Sampling (Polling)
ii. Interrupt/Event Driven

More Related Content

What's hot

Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformation
Ankit Garg
 
Video display devices
Video display devicesVideo display devices
Video display devices
shalinikarunakaran1
 
Random scan displays and raster scan displays
Random scan displays and raster scan displaysRandom scan displays and raster scan displays
Random scan displays and raster scan displays
Somya Bagai
 
BRESENHAM’S LINE DRAWING ALGORITHM
BRESENHAM’S  LINE DRAWING ALGORITHMBRESENHAM’S  LINE DRAWING ALGORITHM
BRESENHAM’S LINE DRAWING ALGORITHM
St Mary's College,Thrissur,Kerala
 
Line Drawing Algorithms - Computer Graphics - Notes
Line Drawing Algorithms - Computer Graphics - NotesLine Drawing Algorithms - Computer Graphics - Notes
Line Drawing Algorithms - Computer Graphics - Notes
Omprakash Chauhan
 
Windowing clipping
Windowing   clippingWindowing   clipping
Windowing clipping
Shweta Shah
 
Character generation techniques
Character generation techniquesCharacter generation techniques
Character generation techniques
Mani Kanth
 
Scan line method
Scan line methodScan line method
Scan line method
Pooja Dixit
 
sutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clippingsutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clipping
Arvind Kumar
 
1. Introduction of Computer Graphics
1. Introduction of Computer Graphics1. Introduction of Computer Graphics
1. Introduction of Computer Graphics
Aparna Joshi
 
Raster scan systems with video controller and display processor
Raster scan systems with video controller and display processorRaster scan systems with video controller and display processor
Raster scan systems with video controller and display processor
hemanth kumar
 
Coordinate transformation
Coordinate transformationCoordinate transformation
Coordinate transformationMohd Arif
 
Computer graphics chapter 4
Computer graphics chapter 4Computer graphics chapter 4
Computer graphics chapter 4
PrathimaBaliga
 
Fill area algorithms
Fill area algorithmsFill area algorithms
Fill area algorithms
Kumar
 
Unit-1 basics of computer graphics
Unit-1 basics of computer graphicsUnit-1 basics of computer graphics
Unit-1 basics of computer graphics
Amol Gaikwad
 
Computer graphics basic transformation
Computer graphics basic transformationComputer graphics basic transformation
Computer graphics basic transformation
Selvakumar Gna
 
Overview of the graphics system
Overview of the graphics systemOverview of the graphics system
Overview of the graphics system
Kamal Acharya
 
Applications of cg
Applications of cgApplications of cg
Applications of cg
Ankit Garg
 
Raster scan system & random scan system
Raster scan system & random scan systemRaster scan system & random scan system
Raster scan system & random scan system
shalinikarunakaran1
 
raster and random scan
raster and random scanraster and random scan
raster and random scan
Sonia Pahuja
 

What's hot (20)

Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformation
 
Video display devices
Video display devicesVideo display devices
Video display devices
 
Random scan displays and raster scan displays
Random scan displays and raster scan displaysRandom scan displays and raster scan displays
Random scan displays and raster scan displays
 
BRESENHAM’S LINE DRAWING ALGORITHM
BRESENHAM’S  LINE DRAWING ALGORITHMBRESENHAM’S  LINE DRAWING ALGORITHM
BRESENHAM’S LINE DRAWING ALGORITHM
 
Line Drawing Algorithms - Computer Graphics - Notes
Line Drawing Algorithms - Computer Graphics - NotesLine Drawing Algorithms - Computer Graphics - Notes
Line Drawing Algorithms - Computer Graphics - Notes
 
Windowing clipping
Windowing   clippingWindowing   clipping
Windowing clipping
 
Character generation techniques
Character generation techniquesCharacter generation techniques
Character generation techniques
 
Scan line method
Scan line methodScan line method
Scan line method
 
sutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clippingsutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clipping
 
1. Introduction of Computer Graphics
1. Introduction of Computer Graphics1. Introduction of Computer Graphics
1. Introduction of Computer Graphics
 
Raster scan systems with video controller and display processor
Raster scan systems with video controller and display processorRaster scan systems with video controller and display processor
Raster scan systems with video controller and display processor
 
Coordinate transformation
Coordinate transformationCoordinate transformation
Coordinate transformation
 
Computer graphics chapter 4
Computer graphics chapter 4Computer graphics chapter 4
Computer graphics chapter 4
 
Fill area algorithms
Fill area algorithmsFill area algorithms
Fill area algorithms
 
Unit-1 basics of computer graphics
Unit-1 basics of computer graphicsUnit-1 basics of computer graphics
Unit-1 basics of computer graphics
 
Computer graphics basic transformation
Computer graphics basic transformationComputer graphics basic transformation
Computer graphics basic transformation
 
Overview of the graphics system
Overview of the graphics systemOverview of the graphics system
Overview of the graphics system
 
Applications of cg
Applications of cgApplications of cg
Applications of cg
 
Raster scan system & random scan system
Raster scan system & random scan systemRaster scan system & random scan system
Raster scan system & random scan system
 
raster and random scan
raster and random scanraster and random scan
raster and random scan
 

Similar to Introduction to Computer graphics

unit1_updated.pptx
unit1_updated.pptxunit1_updated.pptx
unit1_updated.pptx
RYZEN14
 
Computer Graphics Notes
Computer Graphics NotesComputer Graphics Notes
Computer Graphics Notes
Gurpreet singh
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
kparthjadhav
 
Computer graphics - Nitish Nagar
Computer graphics - Nitish NagarComputer graphics - Nitish Nagar
Computer graphics - Nitish Nagar
Nitish Nagar
 
Graphics display-devicesmod-1
Graphics display-devicesmod-1Graphics display-devicesmod-1
Graphics display-devicesmod-1Praveen Kumar
 
Computer graphics
Computer graphicsComputer graphics
Computer graphicsamitsarda3
 
Introduction to computer graphics and multimedia
Introduction to computer graphics and multimediaIntroduction to computer graphics and multimedia
Introduction to computer graphics and multimedia
Shweta Shah
 
Computer Graphics lecture.pptx
Computer Graphics lecture.pptxComputer Graphics lecture.pptx
Computer Graphics lecture.pptx
NishkaSharma5
 
Graphics pipelining
Graphics pipeliningGraphics pipelining
Graphics pipelining
Areena Javed
 
Computer graphics
Computer graphics Computer graphics
Computer graphics
shafiq sangi
 
Mod 2 hardware_graphics.pdf
Mod 2 hardware_graphics.pdfMod 2 hardware_graphics.pdf
Mod 2 hardware_graphics.pdf
DavidsonJebaseelan1
 
Prayas session cgi & cga by – soumalya nandy
Prayas session cgi & cga by – soumalya nandyPrayas session cgi & cga by – soumalya nandy
Prayas session cgi & cga by – soumalya nandy
Tenet Systems Pvt Ltd
 
Computer Graphics Practical
Computer Graphics PracticalComputer Graphics Practical
Computer Graphics PracticalNeha Sharma
 
Randomscandisplaysandrasterscandisplays 130930115124-phpapp01
Randomscandisplaysandrasterscandisplays 130930115124-phpapp01Randomscandisplaysandrasterscandisplays 130930115124-phpapp01
Randomscandisplaysandrasterscandisplays 130930115124-phpapp01
mahammed rashid
 
Graphics processing unit (GPU)
Graphics processing unit (GPU)Graphics processing unit (GPU)
Graphics processing unit (GPU)
Amal R
 
topic_- introduction of computer graphics.
   topic_- introduction of computer graphics.   topic_- introduction of computer graphics.
topic_- introduction of computer graphics.
Aniketkumar204
 
Kompüter Qrafikasına giriş
Kompüter Qrafikasına girişKompüter Qrafikasına giriş
Kompüter Qrafikasına giriş
Hackathon Azerbaijan
 
CG_ch1.pptx
CG_ch1.pptxCG_ch1.pptx
CG_ch1.pptx
NirajG3
 
Csc406 lecture7 device independence and normalization in Computer graphics(Co...
Csc406 lecture7 device independence and normalization in Computer graphics(Co...Csc406 lecture7 device independence and normalization in Computer graphics(Co...
Csc406 lecture7 device independence and normalization in Computer graphics(Co...
Daroko blog(www.professionalbloggertricks.com)
 

Similar to Introduction to Computer graphics (20)

unit1_updated.pptx
unit1_updated.pptxunit1_updated.pptx
unit1_updated.pptx
 
Computer Graphics Notes
Computer Graphics NotesComputer Graphics Notes
Computer Graphics Notes
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Computer graphics - Nitish Nagar
Computer graphics - Nitish NagarComputer graphics - Nitish Nagar
Computer graphics - Nitish Nagar
 
Graphics display-devicesmod-1
Graphics display-devicesmod-1Graphics display-devicesmod-1
Graphics display-devicesmod-1
 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
 
Introduction to computer graphics and multimedia
Introduction to computer graphics and multimediaIntroduction to computer graphics and multimedia
Introduction to computer graphics and multimedia
 
Computer Graphics lecture.pptx
Computer Graphics lecture.pptxComputer Graphics lecture.pptx
Computer Graphics lecture.pptx
 
Graphics pipelining
Graphics pipeliningGraphics pipelining
Graphics pipelining
 
Computer graphics
Computer graphics Computer graphics
Computer graphics
 
Mod 2 hardware_graphics.pdf
Mod 2 hardware_graphics.pdfMod 2 hardware_graphics.pdf
Mod 2 hardware_graphics.pdf
 
Prayas session cgi & cga by – soumalya nandy
Prayas session cgi & cga by – soumalya nandyPrayas session cgi & cga by – soumalya nandy
Prayas session cgi & cga by – soumalya nandy
 
Computer Graphics Practical
Computer Graphics PracticalComputer Graphics Practical
Computer Graphics Practical
 
Randomscandisplaysandrasterscandisplays 130930115124-phpapp01
Randomscandisplaysandrasterscandisplays 130930115124-phpapp01Randomscandisplaysandrasterscandisplays 130930115124-phpapp01
Randomscandisplaysandrasterscandisplays 130930115124-phpapp01
 
A0280105
A0280105A0280105
A0280105
 
Graphics processing unit (GPU)
Graphics processing unit (GPU)Graphics processing unit (GPU)
Graphics processing unit (GPU)
 
topic_- introduction of computer graphics.
   topic_- introduction of computer graphics.   topic_- introduction of computer graphics.
topic_- introduction of computer graphics.
 
Kompüter Qrafikasına giriş
Kompüter Qrafikasına girişKompüter Qrafikasına giriş
Kompüter Qrafikasına giriş
 
CG_ch1.pptx
CG_ch1.pptxCG_ch1.pptx
CG_ch1.pptx
 
Csc406 lecture7 device independence and normalization in Computer graphics(Co...
Csc406 lecture7 device independence and normalization in Computer graphics(Co...Csc406 lecture7 device independence and normalization in Computer graphics(Co...
Csc406 lecture7 device independence and normalization in Computer graphics(Co...
 

Recently uploaded

一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
h7j5io0
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
Confidence Ago
 
Exploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdfExploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdf
fastfixgaragedoor
 
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
jyz59f4j
 
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
ameli25062005
 
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdfPORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
fabianavillanib
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
7sd8fier
 
White wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva TschoppWhite wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva Tschopp
Mansi Shah
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
ameli25062005
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
cy0krjxt
 
CA OFFICE office office office _VIEWS.pdf
CA OFFICE office office office _VIEWS.pdfCA OFFICE office office office _VIEWS.pdf
CA OFFICE office office office _VIEWS.pdf
SudhanshuMandlik
 
20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf
ameli25062005
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
n0tivyq
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Mansi Shah
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
boryssutkowski
 
Transforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting ProfitabilityTransforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting Profitability
aaryangarg12
 
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
9a93xvy
 
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
smpc3nvg
 
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
7sd8fier
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
garcese
 

Recently uploaded (20)

一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
 
Exploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdfExploring the Future of Smart Garages.pdf
Exploring the Future of Smart Garages.pdf
 
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
一比一原版(LSE毕业证书)伦敦政治经济学院毕业证成绩单如何办理
 
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
Коричневый и Кремовый Деликатный Органический Копирайтер Фрилансер Марке...
 
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdfPORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
 
White wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva TschoppWhite wonder, Work developed by Eva Tschopp
White wonder, Work developed by Eva Tschopp
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
 
RTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,DRTUYUIJKLDSADAGHBDJNKSMAL,D
RTUYUIJKLDSADAGHBDJNKSMAL,D
 
CA OFFICE office office office _VIEWS.pdf
CA OFFICE office office office _VIEWS.pdfCA OFFICE office office office _VIEWS.pdf
CA OFFICE office office office _VIEWS.pdf
 
20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf20 slides of research movie and artists .pdf
20 slides of research movie and artists .pdf
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
 
Transforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting ProfitabilityTransforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting Profitability
 
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
 
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
 
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
 

Introduction to Computer graphics

  • 1.
  • 2.
  • 3.  Definition  Classification of Computer Graphics  Components of Computer Graphics  SRGP (Simple Raster Graphics Package)  Drawing with SRGP (With Example)  Basic Interaction Handling  Raster Graphics Features  Limitation of SRGP
  • 4.  Hard Copy Technologies  Display Technologies  Raster Scan Display  Random (Vector) Scan Display  Video Controller  Raster Scan Display Processor Thank You!
  • 5. Computer Graphics is the field of computer science in which we are interested in generating objects and images using pixels (Picture Element) The same showing Titanic in the sea was possible through graphics designing with MAYA software The movies are like Spiderman, Superman, X-Man and Batman and so on have generated special effect using computer Graphic.
  • 6.
  • 7. Computer Programme is a collection of algorithm and data structure. In the same convention computer graphics has been defined as the collection of data structure, graphics, algorithm and any higher level language. We can use any of the higher language like C, C++, Java or any of the graphic package like MAYA, 3D MAX, Blender and Flash to generate graphics of our choice.
  • 8.
  • 9. Computer Graphics is the discipline of producing picture or image using a computer including modelling creation manipulation and storage of geometric objects and converting a scene to an image or the process of transformation, shading rasterization of the image.
  • 10. 1. Passive Computer Graphics:- This is also called offline graphics. Once the graphics programme is develop the user has no control over the display even if he or she wishes to change display they cannot For example:- Screen Saver, Gif file, passive Graphics can be compared to static webpages using (HTML), where user has no control over the contents.
  • 11.
  • 12. 2. Interactive Computer Graphics:- This is also called online graphics. User can dynamically control the display on the monitor. Display are controlled by mouse, trackball and joystick. This is also called (ICG) because, the user can indirect with the machine. For example:- Videogames, CAD (Computer Aided Design) and Computer Generated image.
  • 14. 1. Digital Memory Buffer:- This is the place where images or pictures are stored as an array (Matrix of 0 and 1), 0 represent darkness and 1 represent image or picture. This is also called frame buffer and it help to store image in bit form. 2. TV Monitor:- Monitor helps us to view the display and they make use of CRT (Cathode Ray Tube)
  • 15. 3. Display Controller:- It is in interface b/w digital memory buffer and TV monitor. It’s job is to pass the content of frame buffer to the monitor. The display controller reads each succession byte of data from frame buffer memory and converts 0’s and 1’s into video CD.
  • 16.  SRGP stands for simple Raster Graphics Package.  SRGP consists of library functions that describe custom data types and constants.  SRGP procedures operate on canvases (Painting Board), which is a 2D array of pixels (virtual frame buffer).  The depth will be the number of planes requested by designated application.  Every canvas has its local coordinate system.  Multiple windows cannot be controlled by SRGP application The origin for the local coordinate system is the lower-left corner of the canvas, with the x-coordinate increasing to the right and the y-coordinate increasing toward the top.
  • 17. Drawing in integer raster graphics packages such as SRGP is like plotting graphs on graph paper with a plotting graphs on graph paper with a very fine grid. The grid varies from 80 to 120 points per inch on conventional display to 300 or more on high-resolution display.
  • 18. For example:- Now we draw a pixel (200,300) on 1366 x 768 pixel screen. Program- #include<stdio.h> #include<conio.h> #include<graphics.h> Void main() { int gd=DETECT, gm; clrscr(); initgraph(&gd, &gm, “C:TCBGI”); putpixel(200,300, WHITE); getch(); closegraph(); }
  • 19. Steps:- 1. First you figure out where the origin(0,0) is. 2. Then what primitives (line, pixel, circle, rectangle ellipse and triangle) are provided to you. 3. And what attributes these primitives can have such as for line- 𝑙𝑖𝑛𝑒(𝑥1, 𝑦1, 𝑥2, 𝑦2) Where- 𝑥1- x coordinate of starting point. 𝑦1- y coordinate of starting point. 𝑥2- x coordinate of ending point. 𝑦2- y coordinate of ending point.
  • 21.
  • 22. 1. Canvases:- An SRGP canvas is a data structure that stores an image as a 2D array of pixels. It is also stores some control information, the size and attributes of the image. Canvas is an area of memory which is used as a buffer between graphics software and graphics hardware. Once canvas is create its size cannot changed. 𝑖𝑛𝑡 𝑆𝑅𝐺𝑃_𝑐𝑟𝑒𝑎𝑡𝑒𝐶𝑎𝑛𝑣𝑎𝑠(𝑖𝑛𝑡 𝑤𝑖𝑑𝑡ℎ, 𝑖𝑛𝑡 ℎ𝑒𝑖𝑔ℎ𝑡);
  • 24. It is desirable to restrict the effect of graphics primitives to a sub region of the active canvas. To facilitate this, SRGP maintains a clip rectangle attribute. Likes any attribute, the clip rectangle can be changed at any time, and its most recent setting is stored with the canvas’s attribute group. Portion which is either inside or outside of specific region or space called as clipping. Here the default clipping rectangle is the full canvas, so we can call it clipping rectangle.
  • 25. It is often called bitBlt (bit block transfer) or pixBlt (pixel block transfer) when implemented directly in hardware. 𝑣𝑜𝑖𝑑 𝑆𝑅𝐺𝑃_𝑐𝑜𝑝𝑦𝑃𝑖𝑥𝑒𝑙(𝑖𝑛𝑡 𝑠𝑜𝑢𝑟𝑐𝑒𝐶𝑎𝑛𝑣𝑎𝑠𝐼𝐷, 𝑟𝑒𝑐𝑡𝑎𝑛𝑔𝑙𝑒 𝑠𝑜𝑢𝑟𝑐𝑒𝑅𝑒𝑐𝑡, 𝑝𝑜𝑖𝑛𝑡 𝑑𝑒𝑠𝑡𝐶𝑜𝑟𝑛𝑒𝑟);
  • 26. Guidelines- • It can implemented as nested for loop for each pixel. • It can do more than just move an array of pixel from source to destination. • Copy pixel was faster within local image memory. • copyPixel that can make copy subject to one or more source read or destination write task. • CopyPixel facility is available to write multi- pixel.
  • 27.
  • 28. • SRGP provides no support for displaying 3D geometry applications. • It does not support object level operations, such as “delete”, “move”, “change colour”, because SRGP keeps no record of the actions. • Multiple windows cannot be controlled by SRGP application. • It cannot refresh a screen a screen if the image is damaged by other software. • It cannot rescan convert the primitives(lines, rectangles, circle and arc etc.) to produce an image for display on a device with a different resolution.
  • 29. Hard Copy Technology We can obtain hard-copy output for our image in several formats for presentations, we can send image files to devices or services that will produce 35 mm slides. To put image on film, we can simply photograph a scene displayed on a video monitor and we can put our pictures on paper by directing graphics output to a printer or plotter. The Quality of the pictures obtained from a device depends on dot size and the number of dots per inch, or lines per inch, that can be displayed.
  • 30. Hard Copy Technology Printers produce output by either impact and nonimpact. :- Impact printers press formed character faces against an inked ribbon onto the paper. Example:- A line printer, Dot-Matrix Printer, Daisy-Wheel Printer, Drum Printer, and Chain Printer.
  • 31.
  • 32. Hard Copy Technology :- Nonimpact printers and plotters use laser techniques, ink-jet sprays, xerographic processes (using in Photocopying machines), electrostatic methods and electro thermal methods to get image onto paper. Example:- Laser Printer, Ink-jet Printer, Thermal Printer and plotter.
  • 33.
  • 34. Display Technology The display device developed in the mid 1960 and in common use until the mid 1980 are called. • Vector • Stroke • Line Drawing • Calligraphic Display
  • 35. Display Technology CRT (Cathode Ray Tube) • Raster Display • Random Display LCD (Liquid Crystal Display) LED (Light Emitting Diode)
  • 36. CRT (Cathode Ray Tube) The quality of display image is every important in most application on computer graphics. CRT was the only available device, which was capable of converting computer electrical signal in variable image at high speed. CRT is the best suited for ICG (Interactive Computer Graphics), a beam of electron. Cathode Ray emitted by electron gun and passes through focussing and deflection system that direct the beam on a point on the phosphor codded is uses
  • 38. Cathode Ray Tube :- In raster scan system, the electron beam is swept across the screen, one row at a time from top to bottom. As the electron beam moves across each now, the beam intensity is turned on and off. Picture definition is stored in memory area called refresh buffer or frame buffer. The memory area hold the set of intensity value for all the screen point. Each screen point is referred to as pixel.
  • 41. Simple Raster Display System System Bus CPU Frame Buffer System Memory Video Controller Monitor Peripheral Devices
  • 42. Cathode Ray Tube :- In this technique, the electron beam is directed only to the part of the screen, where the picture is to be drawn rather scanning from left to right and top to bottom as Raster scan. It also called vector display, Stroke writing display. Picture definition is stored as a set of line drawing and on an area of memory referred to as the refresh display file to display a specified picture the system cycles through the set of commands are processed, the system cycles back to the first line command in the list.
  • 45. Random Display System System Bus CPU Display Processor System memory Monitor Peripheral Device
  • 46. Random Scan Display Raster Scan Display It can only draw lines and characters using mathematical formulae and functions. [Perfect for “Painting”] It can draw filled with colours (Complex Drawings). [Perfect for “Drawing”] Video controller is not required. Video Controller is required. Electronic beam is directed to only part where image is to be drawn. Electronic Beam is directed to whole screen for drawing an image or object. Picture definition is stored as set of line drawing instructions(command) in a refresh display file. Picture definition is stored as group of points or set of points known as pixels in a refresh buffer area. It is more expensive and high resolution. Small file size It is less expensive and global resolution. Large file size Editing is easy (picture clarity does not affect) Editing is difficult (Picture quality affect according to raster application )
  • 47. Video Controller A fixed area of the system memory is reserved for frame buffer and the video controller is given direct access to the frame buffer memory. It is an expansion card whose function is to generate and output images to a display. When referring to early machines, the card is sometimes referred to as a graphics controller, when the cards were typically integrated onto the motherboard itself. Such as graphic card
  • 48. Video Controller For example:- You are asking a local resident directions to a hotel. You cannot understand anything this person is telling you no matter how hard you listen. Luckily, someone who speaks their language and yours approaches the person and begins translating for the both of you. After a few exchanges of dialogue, you are able to obtain the directions and make your war to the hotel. A video card works in the exact same way. Without it, a picture would never appear on our computer monitors and we would constantly be viewing a blank screen, making the computer completely useless.
  • 49. Raster Scan Display Processor Raster System containing a separate display processor, sometimes referred to as a graphics controller or a display coprocessor. The purpose to display processor is to free the CPU from the graphics cores. Display processor are designed to- • Digitizing a picture definition given in an application programme into a set of pixel intensity value for storage in the frame buffer. This digitization process is called scan conversion.
  • 50. Raster Scan Display Processor • Perform additional operations such as- • Generating various line style (dashed, doted and solid). • Displaying colour areas. • Performing transformations and manipulations on displayed object. • Interface with interactive input devices such as mouse.
  • 51. Input Device for Operator Interaction There are five basic logical devices: 1. Locator: To indicate a position or orientation. • Tablet • Trackball • Joystick • Touch panel • Light pen • Mouse 2. Pick: To select a displayed entity. 3. Valuator: To input a single real number. 4. Keyboard: To input a character strings. 5. Choice: To select from a set of possible actions or choices.
  • 52. Once you how to draw basic shapes and text, your next step is to learn how to write interactive programs that communicate effectively with the user. 1. Human Factors:- The designer of an interactive program must deal with many matter that do not arise in a non interactive, batch program, they are called human factors of a program, such as its look and feel and its ease of learning and of use. Guidelines:- a. Provide simple and consistent interaction sequences. b. Do not overload the user with too many different options and styles. c. Show the available options clearly at every stage of the interaction.
  • 53. 2. Logical Input/output Devices:- A major goal in designing graphics packages is device independence, which enhances portability of applications. a. Logical Input Devices:- Support for a set of logical input devices. Two types of devices- i. Locator- A device for specifying screen coordinate and the state of one or more associated buttons. ii. Keyboard- A device for specifying character string
  • 54.
  • 55. b. Logical Output Device- • Primitives are specified in terms of an abstract integer coordinate system . • The application does not need to set the individual pixels in the frame buffer.
  • 56. c. Sampling versus event driven processing- There are two fundamental techniques for receiving information created by user interactions. i. Sampling (Polling) ii. Interrupt/Event Driven