home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume14 / rast / rast.h < prev    next >
C/C++ Source or Header  |  1988-05-08  |  797b  |  23 lines

  1. #include <stdio.h>
  2. #include <pixrect/pixrect_hs.h>
  3.  
  4. #define R 0
  5. #define W 1
  6.  
  7. typedef struct RASTER_STRUCT {
  8.     int height;                /* number of rows                            */
  9.     int width;                /* number of columns                        */
  10.     int depth;                /* bits per pixel                            */
  11.     int length;                /* bytes of data following header            */
  12.     int type;                /* rasterfile type                            */
  13.     int maptype;            /* type of lookup table                        */
  14.     int maplength;            /* length of lookup table                    */
  15.     char *map;                /* lookup table                                */
  16.     int linelen;            /* bytes in a row (padded to even 16 bits)    */
  17.     FILE *fp;                /* file pointer                                */
  18.     int mode;                /* read (R) or write (W) mode flag            */
  19.     char *cache;            /* cache of 1 row                            */
  20.     int c_pixel;            /* current pixel in row cache                */
  21.     struct pixrect *c_pr;    /* make cache look like a pixrect            */
  22. } RASTER;
  23.