0% found this document useful (0 votes)
10 views

CG INSEM Solved Questions

Cg problem solved

Uploaded by

lukemorissette75
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

CG INSEM Solved Questions

Cg problem solved

Uploaded by

lukemorissette75
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Page No.

Lngen Date

70192igy psoesso- 6 M
nepetes may ot be q Paxt_Of machioe
lwhich execULesins +Octon8
gn Some q@phic guStem thexe is Sepesate
Comp Des hich honb dles this Job whchic_
calied disp lapsoosso.
RISp lqyfie OLXepetez
gnaStex Scan dPsplgy mage iom9t+on_
StosodAn fs qe bu£fes
Uge X PiSpla Snka2psotexD`/a
paog29m. Fue fie
hose 1ine 2mmgnd age Stoses ín File is
alled a dis p/9y io
6M

RaStea Scan Kaodom SC0


DEFeence
DEiedtson 1he clecson 2am he 2lecxon begm
Beam i s Sw0p odass he ` dirocH on y to
ScZOOn. he pgrxo fSALen-
lwhese qpicto o
o be dsgw,
2pfc e iche is siazodin pickae is SLmei 9q
Efnfon memozÍs COlod set ofg ine dagwfog
c Fame boFfes mSBUCtÍAO ing disp lo
fle
Re oNion o pood ( Goo da
PageNo
Data

D a uien So220nminbc mghom9tim

doa an Pmage o daqu 9n hoge

Roa Stic Gonexgto 209 ON (onoz9te s001


imgqe mago mage
- 6M
o ReSolutfon
20Fer S to the noofdots on +he scean
GETS_ Lessod agq pai oFno.9ÍVen Lhe
OOFdats on hoirontal na and no.Of
dots on VostiaL tfne
640K 48o l2Bo xlo29
ASpaCt 2qHo'
O e fs q 94fo ol L2 th to he fght.
s the idh Ofmgge dilde hy ee
herght
Tnche
6ndhe Spech 9A0 =_8L

3M
2OLoiL qrsaph
TE TS q oeady made Funchion which IS vsad
to initLize tho qsgpb ies mode Fo3oU
Sstom.
he gd qDd m q buo INhe_Je
VaDable b i h OOA to StTNng he
Page No.
Date

qphic dalea Gnd qqphie moda


in ibangphCg gd 4IN, path).
OPath C'c/tc/bqi :
E cpoc sres the diSecLa_path
Lwhere InitgsZph tols Fos agphiee
dVe
Reshose odei
1T UCed to Se ShosC 4he cona
Video mOde
BrseSenhgm's tPne.glj0th.
opecsion 78 qmetos
PO P- 2D-D>C
thon P<O

PkH PK +2A-2 D
PkAPk +2

than, P) O
nan,p<0 p-2DC-D
Cj12+
JittJi+
ic4 Kt 2-D-2DY

Bosenhos CscAe daqwin 19othm.


DecsPnP q69motescp)
P 3-2
CeSe):
Co SeO:-
CP<O) CP)
i+1-J+
Pr+1 Pr+4-+6.
Pitl 044+1J1)Ho,
Fio checK i +
DDP no DEqwng g 9orth m,
<lby|
thon, qssign c | yry aseign j=l.
2C i AX +1+b +
-i+mD.
Pago No,
Dato

Bxesnbams ccLe glQadth m


(Det glae s oEeMc9nd ( )
se decs fooDS9md0 d-82t2
Codzqu dteant ecnbic fnbznky
FoncHon

Rapa9t stope Sto8 ontÍIL 2KEY1


toc20 MOn Vatua Of 2C

R gEd<o,Sak d=d+ Ca++6.


A ESo 50tddt9M(2H)TO qhd

2(ompuHex azaphlc3_do al t2Lth caO2+00


m ninU lg£fon, gnd todg 9O Of diEf0KONt
HpeS_OF m99e Qn Obect.

onpIcgt on:
Compufox qt
QEnttgin ment
Page No.

Coen Sy thexlqnd Ag0thm- Date

mgx

2J)

ma )

mJ -

HRh 2fmaz

ma-

hom Jmin
2 min22
Pago No.

Dato

min min
B
TR = C 7 , 6 ) > ( O x Jm ax

Ri9ht mg,

tMTn9-

72t1CT-S
2
She%1gnd

Ecd-heh ine C1PpTn o g/gosthm


2SpaCos is dwdod YOto eqlon basod on
ho tindatn bo ondOu
Each sqdA hag 2 nque21on Code-
bt
ABRL

OOO

Io OIO ol O1 CD

Code

bito <mfn bit 2 Jmin


bit 1. 2 2 2Cms bit 3 1zma
Page No.

Date

CaSeg
OLino inside the wndow
NOt cipe d

unO Outscefhe cOindow

1AKoAND Ope9Hon oF the ouside


ttno ndpoint of the ine S h e AND
OpexgOn TSnon-Zexo meanS line i outs~de
he aodowGndhe ncg dsaad ho line
IooO

p C O

Dno peztiei heideLhe hcletO.


ines foK hfkh he AnD opexqton Ps

Viible tines.
Page No.

Date

TB RL

helgnd Hodgemg n cn Gpng o h

grngEeach Lnfdow odp. Cipîng


Cndou mOstbe onvec

Vastiaee
one 89Te8 qndpalsod +Ohe n e t ondo
bo ondg his K ho 101cDSad in-
OhoxIdnd Podgo man q19azithm

Lef poly Gnn-


pob on GipeA
Page No
Date

lAight poon fap poiy@on


CL2ped Cipod

BoBom pogon

his seSolLs la 4 possihle zaiahnnshmh


t h o edge gnd Cipping plgne
Caco D1F 1 Vex Her og Poygon Cdqai
OOK*de and second s ngide th oindat)
bounda honDiexsectfon poin OF
Polygon ede and Son Second Vestox Ss
Sko tod nd0tpot.
Page No.

Date

CaseiD: fp hoAho Voze of pogon Odge


isPocide ubindoobo0ndaa h0n gdd
on iy Seond Vos te to OUtpUt

CoLSolti-£
C FBSE VODHo o E oYqon Cdae
STnsido g0d Soond 2dgo OtsTde
ehaed he u fhdo co boundaY hgn
LTAessecrion pofnt oP edae SLSSOA in

Caleli)-fboh cd{e UextexO polyaan


S OUxide Fh condo
thoSe Vos teri beonda8ythn
hoded 0 OctOd
B
Page No.

Date

imitaion
Con vepoLyOn P< cobeeHG Cupped by
h SHa to21thm. 13 e , CenaVo polyaans
n nobo cipped Consachl Ft may ba
diplaod oith CxagoUC Yncec

4-Ce0Aocted pipcoiAfhoz pa înting a pike


he fUnctTon s alI2d Foz ks fooa neighbaong
Ponbs.he Pixe 20sihon are miht, lertaba
9hd be1o to th Cusent pixe1 qs09 i lo
by thig method Fs l1gd 4-Con neched

A19omhm-
Uinti2elhe VgluO of Soed pornt

DerOo he boundazy Valoe Ofthe olNgon

check if the c/sootCe2ipofnt s of


dafa ol oloa then epeat Ste p@ and
fll the boundaypiAois goe seqchad
Changqe the do fau lt Coloa withe iColo
gt he Seedpofnt.

ORecusVeLyfollow ho pxoQduse o+h fo0a


Points
Page No.

Date

8-Comacltd pixoL Moo ompiX Fg g&e


FlIOd Usfhg thfs molh04 The FunCHfo
n
Called 6 ne?hbouanng prel Mo pPxe
are aght ,loFE,gboVe balouO ans 4
dqongl p>celS ,930a ETLOd h his mofha
isalied a -coonected plxel

Algo hm

nibiLTe the Vatno ofsood ofntb.

2Defino the baundory Vatuo of PAIY gon


check YE he Caont sead poYnt g of a
defq vt r o S h n 30pO9t Step qnds)
11 hoOndax picel ot J09ched

(change the defon tt Colox OHh h e


i Colo
ORoco8SVa,ollow ho pocaduse r4h

Com nb K-Co\hocHHd MoihodiS boHeg Eod


F pOygon
Page No

Date

COdd E2eA mohod

nOdd CDen method DUmbex og fntossecedn.


COvntCd
Ehos0 g3e odd n +o3sochon 31 S) 4han
poinb P hsito ho Potygon
9F hoxe oxg evon EoXs2con (2,46) thon
Po iOt Ps ootside the poyga0
Specral cafe

f +he_pofa b 1es on he Same sido


Of he ons3UCHeAtme.+hen he
inASCtTÓO_porn6 2UeA.

E Lhe point eg ontha dpposite side


MtQg SOCEon
OE Congfav Cha Ine hen Hhe
Dalnt odd
Page No.
Date

Son Line poygon Fng 4/cephm poygon


Cantna pfning Fiuing foX
SON iines
inq hom rental neg OB

OfSLpf aho4hm o
h o pU PoSe f q_
h e hheno 1rels
E*IL (Cplox )

6 O 12

fa 3
*

S2eca Cases
goe on
e tno nt2 peng Ghe vedte
OE Scan fre,cansidak b ag
the ame Side
L00poYnt_
Page No.
Date

SE ino Pnteisep Png aha Vaxte ae at


opposte o£ the SOne ine onside& £'a oly
ona poiot

OmpOnonE Of polygOn Eng.


Edgo bucKeES
Edgo Lgble. a

Saod Fi algc thm odg e fiL algoathm


DACadSeed poPnts to Basod on he omplamen
ta picoel
2C ont pieLolos Pixel on aqht sdeof pdgo
is compe2od lth pizei
Clo O fBoonda Cmp@mon tod

Ciso kiown a{FCOd kno na booriasy EPLL


Fr 19oathm eIothm
t eqpisee hoaa t BoqoikeS /ess amoon
amo o of memo
seds g/9Otha TheThe ComplOhtof edge
P im ple ghA
OEfenb. high.
SIo Ox thoh Cdge Fastox han Geod E iL
Eng gqobhm Igo hm

You might also like