0% found this document useful (0 votes)
137 views11 pages

Borland Graphics Interface

Using C++ to draw graphical elements and build graphical application

Uploaded by

Profvip Abotaleb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
137 views11 pages

Borland Graphics Interface

Using C++ to draw graphical elements and build graphical application

Uploaded by

Profvip Abotaleb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 11
Seis Ap Saeg ind Laleg [Sth Gly Leols figeg ads WS 1i6);1 Sill Ger Bore oe Gourse Si a Video Modes = Logishl Video Adapter ) E3LU) aU foe (Vides Mode) eld eu ob 326 25h] BLS (52) pb py (Sr) ph eleeabar tgp bi,Cas Bolg casS Screzn J] dG] Bee Screen esolusan ePitels A\pe0 tga coh sae a SGroehs Med@ 4} Gis fus Teve Mote NG aelbs es Nn Cgehcflgl Vy deo Adapter | Moke Pest Colors] Macies Monochtene Orselag | Préapter (MDA) ‘ Sa | EE 1 CCAS 4 fl | eeadr Glor Grghics Adapter 3 320#200 cea leew 4 640420) DZ | CeAHT q G K( oO 640 *200| Ié Eon eee 4 | Growdag [6 FoR | EA mao 0 |é4oxKo! 2 jzariovon | | | Byom2e0} 16 VGRLO g | Video Crop hics | Q ledow tel tc VeAmen a | Aray Blopter CVGA) | 2 [e4on480 | GAH | 11a . | 5 | gp Torotes cag) 1 , © VGA ard] Video Gophici Ana adapter; So alle as TS the Aryk Video adapter implemented as ASIC rather Yogic bkocks. a Z Application Specific Lndograded Cirmtth Bus interfacing, Comector ts called 15 -Pin Be Subvniniature UGA conned, [DA-/5] ‘ ED Scooeny O Bp o-s Main Grarnctorisst- [ome o| ye 28618 Video Ran. z 2 |6-Glor & 256-Color Modes, a Clock freq up te 28.3 Ai, a 2 Split Screen adUantoge. : CRT 1 F929 COMI gs eo Lm L el i Rate - Jo Clothe 22 I { ‘Sone Polarity - : 1 (Began elt) PAS Tek mode —-_ BOTS or 40425 Ft cel, i a i » Character 1 gal6 pikels. Charactor ba Bundingrh fot s = awe could define cur ~ 6 Jo mg 2 eS Se A Aba bas € basil oy Gy ates HK Upper Goff R 4: Tote mmole > aa 2 Corner} - a 10 {Tam ARO, ee GSC] poscton (TROL He ayo | L , In Cenanl- Bo aeHo Columns 15,43 sr 50 Lines Seach cal) consists of a chayoctor & an attibute, ~» Charvocter 1S the d8played ASC character. > Diibte specifies Déler-lntensty — -—] (2. - Grophics. mode pixel,(2.2) | Geren 11 Wided ties piel: 2B gy 2 P pirat is asingle laenangg do: CRA leery Foal Giars le Ginos & Shapes. ; ervel 2,- All enclosed areas orth pattern, (639, 449) a Contr) colbr,-— of each pital Uy tele mde 3 we could etealde o pat of screan & ‘prowes with it Le SS 9 By Ouse (QF Ota aug 9/ 42, i ca Cihie au Crd ma 9 pL 5h | ee ET A (Me pple. Mbp) : Default Window fall Screcn tel Wind, Ze ay When inVsiing [inde] findro» : Bor determihe a spectfre ebay} LOL. C7 Area thd reypof the Sheen wil hot be touched ba any Dar tekt mode Cunchon directo] te $s Whdow, fevport Gephits mode SP Mgt be ACH of on Uitual Screenjy Hest ofthe Scredn Loutside FA2 Uleuper fl remains antouched, (Setiews ort ) Li} Plone es ene ee Uigupert ~ (uindow Jey WBE Cie sened dicsteAe) (Far porter) fr . j . ( Gurent Code sezmnort {ll oe S65 51 jus pap we ied ale ony model JS Igoe LJ /BRA RS EB BS SS SRS SR eR RES a2 (Drawing g filling Functions} = You ‘an dvaw colored Ones, arc, Cire, ellipses , rectangles, pie shies, tose & three Jimensonal bars, Polsgens & regular on iyreqwlar Shopes, ~ Also Fill anvy looun ded Shape wrth one of 4A predefred patterns dr Apur OWN user defined shorn - 3 aus “cntnl the thickress & Style of Hh drowih Ono, Q& tha Qecation f& cP Chae Current posTtion. bar C ‘ale bard drowpoly Gilellipse ehhipse_ Fill pol jj ine | anesthe 4, dinowl KL , Uinovex feels Vine to : tall Meee | 3k Nes) Syl 8 jad LVi, thick or tj Settling style i ing Sry < Solid , dotted Selece a pie khned fill posters satfillstyle # define Your own fill patom > Set ll patern Mote the @ do a Geafied Qoertion using _move-te ~ 7 Ganent postion Aomre the O uth o Specified displ coment ustth Proverel getLnesetings + canent Qing Style & Hhictrey I cot fbr informacion about He. Bet cele ne rh lade gerbil pattems Gee the user delred illertor t ! I t t | I \ I | | | | | | | | | | | S “BBB BRB BB REE RRBEBRBR ERR RSE Pspect_tect retio Circles) Guy BT SEW piv case Selling Factor ye ete Seting Factor CW Lh gibT Let wih Al bgsely) a2] (3 Lalice m/.o opus ialpie9 DA Bsd oth beg factor pepevh He éllipse pibso / ' Scaling Qetaspeckinto(J, lade fect Sao ell ey Bp) eee Geto pectrotio(]. 3 Blab ese EPs cLaglte fel ped) getore @ords(). N-™ J; ee BGI First Lab [Abotaleb ].txt Question One: Draw two magenta lines and a red circle using CGA mode the background should be white. Question Two: In textmode specify two windows window one coordinates:(20,5,60,10) window two coordinates:(20,15,60,20) also frane both windows and the screen located in the region (1,1,80,25) Question Three: Build a textmode application which in the first window ask you to choose from three choices Either entering your name or your phone number or exiting. In the second window it should input your name and phone. Question Four: Draw a horizontal cylinder-inclined cylinder open cone and closed cone -toroid-half toroid Needed Functions Prototypes: int far getmaxx(void); int far getmaxy(void); void clrser(void);//conio.h void window(int left,int top,int right,int bottom);//conio.h Page 1 BGI First Lab [Abotaleb ].txt int getche(void);//conio.h int putch(void);//conio.h highvideo(void);//conio.h lowvideo(void);//conio.h normvideo(void);//conio.h void textattr(int newattr)://conio.h void textcolor(int newcolor);//conio.h void textbackground(int newcolor);//conio.h setcolor setbkcolor circle line initgraph Be Page. 2

You might also like