Lecture 1
Lecture 1
Representing 2D
Simulating changes Constructing 2D Representing 3D image
of objects over time images from 3D objects
model
Computer Graphics Applications
,
03
04 02
05 01
Cathode Ray Tube(CRT) •
Video Liquid Crystal Display(LCD) •
Display
Devices Plasma Panels •
Light Emitting Diodes(LED) •
0 0 0 0 0 0 0 0 0 (black)
128 64 32 16 8 4 2 1
1 1 1 1 1 1 1 1 255 (white)
2) Given an image with 8bits/bixels the maximum intensity value of this image?
Graphics Models
Raster (Bit-map) Vectors(Random)
Images are represented by dots pixels Images are represented by sequence
of commands or mathematical
statements
Resolution dependent Resolution independent
Raster scan display (TV, monitors, Random scan display (plotters)
printer)
Software: Photoshop, paint, shop pro Software: illustrator
File structures: Bmp, Jpg, Png ,Gif File structures: pdf, SVG
More detailed image Less detailed image
NO YES
IF p<0
X=x+1
Y=y+1 X=x+1
Plot(x,y) Plot(x,y)
P=p+2Δy- P=p+2Δy
2Δx
Question1: calculate the points between starting
point p1(9,18) and ending points p2(14,22) using
Bresenham’s algorithm?
1) GUI stands for -
(a) Graphics uniform interaction
(b)Graphical user interaction
(c) Graphical user interface
(d) None of the above
2) Graphics can be -
(a)Simulation
(b)Drawing
(c) Movies, photographs
(d) All of the above
3) CAD stands for -
(a)Computer art design
(b)Computer-aided design
( c) Car art design
(d)None of the above
4) A user can make any change in the image using -
(a)Interactive computer graphics
(b)Non-Interactive computer graphics
(c)Both (a) & (b)
(d)None of the above
5) What is a pixel mask?
(a)a string containing only 0's
(b)a string containing only 1's
(c)a string containing two 0's
(d)a string containing both 1's and 0's