home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Select: Games 4
/
CD_1.iso
/
games
/
warrisk
/
putpic.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
2006-01-16
|
660b
|
21 lines
Procedure getpic( VAR picname:str20);
{This procedure will clear the screen and display the picture
in the named file}
Begin
Window(1,1,80,25);
Clrscr; {Clear Screen}
For i:=1 to 24 do Screen[i]:='';
Assign(Source,Picname); {Assign pic name to be displayed}
Reset(Source);
i:=1;
While not EOF(Source) do {Read picture and put in array}
begin
Readln(Source,Line);
Screen[i]:=Line;
Fastwrite(Screen[i],7,0,2); {Display picture}
i:=i+1;
end;
Snapshot(1); {Save picture for future use}
end;