home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Intermedia 1998 January
/
inter1_98.iso
/
www
/
rozi
/
PCX_W.ZIP
/
TEST.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1997-01-21
|
676b
|
45 lines
program WritePCX;
uses
Graph, PCX_W,crt;
procedure DrawHorizBars;
var
i, Color : word;
begin
cleardevice;
Color := 15;
for i := 0 to 15 do
begin
setfillstyle (solidfill,Color);
bar (0,i*30,639,i*30+30);
dec (Color);
end;
end;
var
NameW : Str80;
Gd,
Gm : integer;
begin
writeln;
if (ParamCount = 0) then
begin
write ('Enter name of PCX picture file to write: ');
readln (NameW);
writeln;
end
else
begin
NameW := paramstr (1);
end;
if (Pos ('.', NameW) = 0) then
NameW := Concat (NameW, '.pcx');
Gd:=VGA;
Gm:=VGAhi;
initgraph (Gd,Gm,'c:\tp\bgi');
DrawHorizBars;
readln;
Write_PCX (NameW);
closegraph;
textmode (co80);
end.