home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Hack-Phreak Scene Programs
/
cleanhpvac.zip
/
cleanhpvac
/
GFXFX2.ZIP
/
UNITINT.ZIP
/
U_FFPCX.INT
< prev
next >
Wrap
Text File
|
1995-02-14
|
765b
|
43 lines
(*
** PCX unit
** Supports:
** ■ Fast load routine for 64Kb files only
** ■ Save routine
** ■ General display routine
**
** Made by Bas van Gaalen
*)
unit u_ffpcx;
interface
uses dos,graph,u_pal;
const
pcx_ok=0;
pcx_nofile=1;
pcx_invalid=2;
pcx_nomem=3;
pcx_nocreate=4;
pcx_errfile=5;
type
pcx_inforec=record
xres,yres:word;
pixs:byte;
end;
var
pcx_status:byte;
function pcx_errstr:string;
function pcx_load(fname:pathstr; var pic:pointer; var pal:pal_type):byte;
function pcx_save(fname:pathstr; pic:pointer; pal:pal_type):byte; { 320x200 }
function pcx_display(fname,bgipath:pathstr; vidmode:shortint):byte;
function pcx_info(fname:pathstr; var info:pcx_inforec):byte;
implementation