Beruflich Dokumente
Kultur Dokumente
OUTPUT PRIMITIVES
J.J. ADRI JOVIN
Assistant Professor
Department of Information Technology
Sri Ramakrishna Institute of Technology
Raster Scan Displays
J.J. ADRI JOVIN, Assistant Professor, Dept.
of IT, SRIT
2
Architecture
J.J. ADRI JOVIN, Assistant Professor, Dept.
of IT, SRIT
3
Random Scan Displays
J.J. ADRI JOVIN, Assistant Professor, Dept.
of IT, SRIT
4
Architecture
J.J. ADRI JOVIN, Assistant Professor, Dept.
of IT, SRIT
5
Color CRT Monitor
J.J. ADRI JOVIN, Assistant Professor, Dept.
of IT, SRIT
6
J.J. ADRI JOVIN, Assistant Professor, Dept.
of IT, SRIT
7
Flat Panel Displays
J.J. ADRI JOVIN, Assistant Professor, Dept.
of IT, SRIT
8
Input Devices
J.J. ADRI JOVIN, Assistant Professor, Dept.
of IT, SRIT
9
Trackball
J.J. ADRI JOVIN, Assistant Professor, Dept.
of IT, SRIT
10
Space ball
J.J. ADRI JOVIN, Assistant Professor, Dept.
of IT, SRIT
11
Joystick
J.J. ADRI JOVIN, Assistant Professor, Dept.
of IT, SRIT
12
Image Scanner
J.J. ADRI JOVIN, Assistant Professor, Dept.
of IT, SRIT
13
Touch Panel
J.J. ADRI JOVIN, Assistant Professor, Dept.
of IT, SRIT
14
Light Pen
J.J. ADRI JOVIN, Assistant Professor, Dept.
of IT, SRIT
15
Points and Lines
setpixel(x,y) load a specified color point in
the location specified by x and y
getpixel(x,y) retrieve the current frame
buffer intensity
J.J. ADRI JOVIN, Assistant Professor, Dept.
of IT, SRIT
16
Line drawing algorithms
J.J. ADRI JOVIN, Assistant Professor, Dept.
of IT, SRIT
17
c x m y .
1 2
1 2
x x
y y
m
1 1
x m y c
m
y
x
x m y
DDA Algorithm
Digital Differential Analyzer
Consider positive slope and the slope is less
than or equal to 1.
We sample at unit x interval
For lines with positive slope, greater than 1,
the roles of x and y are reversed
J.J. ADRI JOVIN, Assistant Professor, Dept.
of IT, SRIT
18
m y y
k k
1
m
x x
k k
1
1
2
1
Otherwise, the next point to plot is ) 1 , 1 (
k k
y x and
x y p p
k k
2 2
1
5. Repeat step 4 x times.