www.pudn.com > pcx_c.zip > PCX.H


/*	PCX   Header for PCX file gen. routines 
 
	Based on ZSOFT technical reference manual  
	from Shannon at ZSOFT, who asked to see a copy  
	of this when it's done. 
	 
	ZSOFT corp. 
	1950 Spectrum Circle 
	Suite A-495 
	Marietta, GA 30067 
	(404) 428-0008 
 
	Update History: 
	 
	10-Mar-88:  Starting. 
	12-Apr-88:  done! 
*/ 
 
 
#include "vgr.h" 
 
 
typedef struct { 
   unsigned char red, green, blue; 
} TRIPLET; 
 
typedef struct { 
   char maker, 
 	version, 
	code, 
	bpp; 
   int	x1, y1, x2, y2, 
   	hres, vres; 
   TRIPLET triple[16]; /* palette */ 
   char vmode,  
   	nplanes; 
   int	bpl; 
   char __unused[128-68]; 
} PCXHDR; 
 
typedef struct { 
   PCXHDR hdr; 
   uchar **rows[4]; 
} PCXPIC;