/* ***********************************************************
 * *                                                         *
 * *  Fileformats private Library Prototypes and Structures  *
 * *                                                         *
 * ***********************************************************
 * File: libs/fileformats/fileformats.h
 *
 *                       COPYRIGHT (c) 2002  BY 
 *          SIGMET INCORPORATED, WESTFORD MASSACHUSETTS, U.S.A.  
 * 
 * THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND  COPIED
 * ONLY  IN  ACCORDANCE WITH  THE  TERMS  OF  SUCH  LICENSE  AND WITH THE
 * INCLUSION OF THE ABOVE COPYRIGHT NOTICE.  THIS SOFTWARE  OR  ANY OTHER
 * COPIES  THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY
 * OTHER PERSON.  NO TITLE TO AND OWNERSHIP OF  THE  SOFTWARE  IS  HEREBY
 * TRANSFERED. 
 */ 


void ColormapFromRgb                     /* File: ColormapFromRgb.c */
(struct color_def Colormap_a[256],
 const UINT1 iRed_a[256],
 const UINT1 iGreen_a[256],
 const UINT1 iBlue_a[256]);


UINT1 *Conv8to24
( UINT1 *pic8, int   w, int   h,
  const UINT1 *rmap, const UINT1 *gmap, const UINT1 *bmap);

void WritePS(
 FILE *fp,
 const UINT1 *inpix,
 int image_width_pix,
 int image_height_pix,
 const struct color_def Colormap_a[256],
 const char *filename,
 int paper_orientation,
 int paper_size_idx, 
 int image_color,
 int image_pos, 
 int image_size);

FILE *printer_pipe_fopen(volatile const char *quename, UINT2 lraw_output);

