You are on page 1of 9

9.8.

23 GRAPHICS

visualisedata
DEVICE
Commontechnique cathode
That Is raytube
B brightness x strength ofbeam
etails 2marks Persistence resolutionrefreshrate
tf bmarks
tabulate Tragerscan illuminatesapixelatatime informationabtpixelintensityinframebuffer
atleast3points movesacrossscanlinesilluminatingnecessarypixels
RGB framebufferknownaspixmap
BIWsystem only2modes on a offsbitmap
Iefn 2points interlacing imageshown in 12thetime
2passes I passdisplaysevenlines
2ndpassdisplaysoddlines
Random
linedrawingcommands smootherlines
ifimagecomplexmoretimetakentodraw
colorcat shadowmask KGBrays

108 LINEDRAWINGALGORITHM
slope
ppa
y yintercept
hiii
numerical yet
gym
algor M
only
HERWISE 312 Ayn
doentire
proce ure PK
0 I 2 a nai a

8subcases
2 veslope In general
2 veslope yet Yutm
1 re slope Ltor 1m11 Imi i anti nut Im
2 veslopeRtol Imsi Imi i m i samplealongy tonotmissanypixel
3 veslope Ltor Imsi Iml I me samplealong
incrementing
4 veslope Rtol Imsi Iml I inthat
direction
1 theslope Ltor 2 rest
lmk lml I
Nkt Nkt L
Yeti Yeti
9kt Yktm

3 veslope Rto L

iii
Iml t
nice he 1 ya Ya I
mm

5 veslope Lto R 6 veslope Lto R


Intel 1m17
Kkti Akt Yeti UK 1
the yr m mkt Nicttm

7 veslope Rto l s veslope Rto L


Intel 1m17
Nkt 2K I 4kt Yett
Ykti Yum Nkt Nk Ym

Limitation needtoroundofftonearestintsincepixeladdressingis in integers


23182023 Bresenham's linedrawingalgorithm

PK 2BYKK 2DNyKt2Dy 2bDn Da


Po 2Dyno2Dnyo 2Dy 2 go Dyer Da Da
Po 2Dy Dr DecisionParameter
important
cases when lml i change An EeDy
vector 1m11
Po 2Dy An
Plot noYo
Repeat can yn

if Picco
plotNkt'sY
Pkt Pkt2Dy
else
plot Cacti Yet
ix any da

mm
d M0.8 1 20,10
K Pk anti Yeti
0 6 61,11
g 22,127 Pal 6 218 21107 2
2 2 23,12
3 14 124,13
4 10 25,14 Pkt 14 16 20 10
5 6 126,151 Pkt 10 1620 6
6 2 16 Pkt 6 16 20 2
I 28,16 putz 4 2

circle symmetricalabouttheoctet
formula n.ae Cyyd rz
22 4222aythentranslateto

X cnciy .eu
startingpt com samplingoctets

Cary
Notfloatingpointcalculations
MIDPOINTCIRCLEALGORITHM
CnnY
prefery Ny 22
gin substitute anti YK 1 2
Decisionfactor f artistic42
Pr anti Cy 42222
Piti anti ya 12722

Pkn Pk Ca 1 2 anti YI 4 Ya 22

Pict Pkt2 Nkt YI Yi yet y t


If Picco plotYet YK
Pict Pic 22kt 1
Else Pic 0 plot yet 9kt
Picts Pk 22kt 24kt 17
Pict22kt 24kt t

Étitiitingigmeter
flott r 12
12 4 123222
r I 12
E
ALGORITHM 0,27 Poet r
repeatuntil n y
if Ppc
2418123 O center10,0 2 10

K Pk artisan
O g 11,10
1 6 12,10 Ph 9 247 1
2 I 13,10 Pic 6 2127 1
3 6 14 9 Pk 1 6 1
4 3 15,9 Pic 6 8 18 1
5 8 6,8 Pk 3 10 1
6 5 717 Pk 8 1216 1
4
NOTE
inexam Thenwritetheoctet for one point
if not centered on 10,01 addCactkka Tatya asanothercolumn
PPTQuestion
or 14 center 15,10 start 0,14
K Pk Cartaya Ratna Ye Yai
0 13 1,14 16,24
I 10 2,14 17,24 Pk 13 2471
2 5 3114 18,24 Pk 10 2123 1
3 2 4113 19 23 Pk 5 21331
4 15 5,13 20123 Pk 2 214 2433 1
5 4 56113 21 23 p 15 21531
G
T O 8,11 1231211
Pk 9 217321123 1

14 70,10 25,20 Pee 5 219 11

O Bresenham's
M
noyo 718 CnnYn 12,19 DM 514 11 31
Po IDN Dy 10 11 1
K Pie Cake Yet
O 1 8,87
1 9 1939 Pkn Pk 2DN 1 10
2 3 10,9 Pal Pat212 2Dy 9 10 22
3 7 pal 3 10 7
2518123 Ellipsedrawingalgorithm symmetricalaboutquadrant

s
F
g
aboutorigin
ferry
tf
my Tysetrayzzary O

IN R2 Regions Regions when slopes 1

R2 samplealongy find a samplenifindy


Yeti Yi 1 nice Natl
Mkt I Yktify
Checkslopetocheckregion
2ryantaraydy D
Irn'ydy 2ryn
91 27
Region1
Pik flaktl Ye 1 2
In
Pik Ty'CNADIVELY 1272 rainy
Pact Ry Haiti truly 2 zany
Ty natl 112 82 ya42 Mary

Pike Pac ry'd try 2ry2Nkt 182 YI 44 9 1 ratty


ycfktD rancyk.aty4Yic trn ry
ry2 2ry2aktDtVn2 1272 Y 42
ya
splittinginto2subcases
Picco plotYktiYk Pike Pik12J Nkttry
Pik30 Plot yet Ye 1 Pie try't2vjaka 22EURD
ry22ry2aka 2MYKATRK
Pio f Ott ry 42
by notcry 1272 rainy
ry2 Inky trot

Region2
Pak flu y f Nkt42 YK l
if Pak 10 s plot net l
elseif Pa o plot a
In
2
Pak Vy Nkt 2 82 yet Tatry O
Paka Vy Nktt 2 rn yet 1 zjry2 org
2 x riy tnry2 o
Vy Nktt 2 iffyk 1 172 rainy2

nicht 2 rally 1 tri 222C


yaDairy
KIK
Pact Pak Vy
2
ry2 act 2 rainy
rot 2miyet try anti 42 Natya

splittingintotwosubcases
Pal so nice Natl
32 2 Natya
Pakti Paktr 2ratyke try Gt
Pac on 2824kt try
Ink 2
Pak tri artykn t 284 Nick
Pac 0 Nkt Nk
Pat PatVu 2 riya

Pao
f Not42 Yo 1
Ny not 2 rn yo17 raspy
Raye 10,0 10,6
29823 rn S Vy 6
k Pic Nica Ya 28422kt 2239kt
RI 0 332 1,6 2161261772 768
I 224 2,6 144 768
2 44 3,6 216 768
3 208 4,5 288 640 44 2 3643 36
4 108 5,5 360 640 208288 640 31
5 288 6,4 432 512 108 360736
6 246 7137 504 384 288 432512 36
Dr T 23 812 576 256 3617.573 64147 64 31
8 361 8,1 128 23 64 256 576
9 297 8,0 361 66 128
Lofatmodeiling
system e worldmodellingsystem oil easily convertable
Convertto normalised devicecoordinates

aproject to some Olddevice


hastoadaptto it bystretchingto fit devicecoordinates
affectsresolution
GeometricTransformation
Translation movedto someotherpoint
rigidbodytransformation
nochangein shape
TranslationVector determinesmagnitudeoftranslation Cattarytty
Enity
P P'T

14 55 E E
Rotation by an angle rotationde wrt which axis
a reos.CO Q
rcosqcosO
rsinOsin y'ersinCOt0
rcos0sinOtrsin0cost

You might also like