Pascal Graphics |
|
Any questions send them to pascalgrph@teentwo.8m.com 1. How to load 320 X 200, 256 color PCX Images: To load a PCX you will need the SPX UNITS(you can find then
in our download menu) You will also need to install a 256 color user bgi driver, the bgi
file (bgi256.bgi) is included with the SPX UNITS. EXAMPLE: Uses
Click here to download the spx libraries, spx.zip Any questions send them to pascalgrph@teentwo.8m.com 2. How to link graphics drivers directly an executable. To do this you will need BINOBJ.EXE. It comes with
TP 7, and it's a program that translates a file so that TP's compiler can use it. Now that you have created the object file you link it to
your program like this EXAMPLE: Program NoBgi; Uses Procedure egavga;external; VAR Begin REGISTERBGIDRIVER if a function and sends a value back. If this value is larger than 0 the file has not been linked correctly. Font files can also be linked like this to your program. Instead of typing REGISTERBGIDRIVER you must type REGISTERBGIFONT(@X); You can also use this to link assembler programs to your TP
program. You can then use the procedures in the assembler program. Any questions send them to pascalgrph@teentwo.8m.com 3. How to initialize grphics with out BGI files This proceure initializes 320X200 256color graphics. Procedure VideoMode(Mode: Byte); Assembler; To use simply type VideoMode($13); to initilazi graphics and VideoMode($3) to return to textmode. Any questions send them to pascalgrph@teentwo.8m.com Procedure Putpixel (X,Y : Integer; Col : Byte); This procedure will work in both 640X480 and 320X200 video modes. Any questions send them to pascalgrph@teentwo.8m.com Procedure line(a,b,c,d,col:integer); Function sgn(a:real):integer; var begin You can use this procedure to create other proccedures like bar. Any questions send them to pascalgrph@teentwo.8m.com |
|
This page is best viewed in 800x600x256. This page was last edited Tuesday, June 27, 2000 |