home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / LASER / PRTPCX.ZIP / PCX.H next >
Encoding:
C/C++ Source or Header  |  1991-01-01  |  1.5 KB  |  29 lines

  1. /*-------------------------------------------------------------*/
  2. /* FILE:   PCX.H                                               */
  3. /* DESC:   PCX file header structure                           */
  4. /*-------------------------------------------------------------*/
  5.  
  6. typedef struct
  7. _pcx_header
  8.      {
  9.      char          manuf;       /* Always eq 10 for Paintbrush */
  10.      char          vers;        /* Version information         */
  11.      char          rle;         /* Run-length encoding (=1)    */
  12.      char          bitpx;       /* Bits per pixel              */
  13.      unsigned      x1;          /* Picture bounds- left        */
  14.      unsigned      y1;          /*                 top         */
  15.      unsigned      x2;          /*                 right       */
  16.      unsigned      y2;          /*                 bottom      */
  17.      unsigned      hres;        /* Display horiz resolution    */
  18.      unsigned      vres;        /* Display vert  resolution    */
  19.      unsigned char rgb[48];     /* Pallete                     */
  20.      char          vmode;       /* (ignored)                   */
  21.      char          nplanes;     /* Number of planes (v2.5=0)   */
  22.      unsigned      bplin;       /* Bytes per line              */
  23.      unsigned      palinfo;     /* Palette Info (1=clr,2=gray) */
  24.      unsigned      shres;       /* Scanner resolution          */
  25.      unsigned      svres;       /*                             */
  26.      char          xtra[54];    /* Extra space (filler)        */
  27.      }
  28. pcx_header;
  29.